This commit is contained in:
DieMyst 2021-03-19 12:40:27 +03:00
parent 6c4bea84ed
commit a72bfff377
2 changed files with 21 additions and 3 deletions

View File

@ -2,6 +2,23 @@
The high level language that compiles to AIR and some wrappers in the host language (e.g. TypeScript). The high level language that compiles to AIR and some wrappers in the host language (e.g. TypeScript).
## Build and use jar file
To build a file use this command:
```commandline
sbt assembly
```
jar file will be in `target/scala-2.13/aqua-hll.jar`
Run:
```commandline
java -jar aqua-hll.jar path/to/input/dir path/to/output/dir
```
input directory should contain files with `aqua` scripts
### TODO ### TODO
- Lambda - Lambda

View File

@ -12,6 +12,7 @@ lazy val root = project
scalaVersion := dottyVersion, scalaVersion := dottyVersion,
mainClass in (Compile, run) := Some("aqua.AquaGen"), mainClass in (Compile, run) := Some("aqua.AquaGen"),
mainClass in assembly := Some("aqua.AquaGen"), mainClass in assembly := Some("aqua.AquaGen"),
assemblyJarName in assembly := "aqua-hll.jar",
libraryDependencies ++= Seq( libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.0.0-RC2", "org.typelevel" %% "cats-effect" % "3.0.0-RC2",
"org.typelevel" %% "cats-parse" % "0.3.1", "org.typelevel" %% "cats-parse" % "0.3.1",
@ -19,9 +20,9 @@ lazy val root = project
"com.github.julien-truffaut" %% "monocle-core" % monocleV, "com.github.julien-truffaut" %% "monocle-core" % monocleV,
"com.github.julien-truffaut" %% "monocle-macro" % monocleV, "com.github.julien-truffaut" %% "monocle-macro" % monocleV,
"co.fs2" %% "fs2-core" % "3.0.0-M7", "co.fs2" %% "fs2-core" % "3.0.0-M7",
"co.fs2" %% "fs2-io" % "3.0.0-M7" "co.fs2" %% "fs2-io" % "3.0.0-M7",
), "org.scalatest" %% "scalatest" % "3.2.5" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.5" % Test )
) )
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.3" cross CrossVersion.full) addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.3" cross CrossVersion.full)