Skip to content

Commit

Permalink
Now you can use line terminator as statement terminator
Browse files Browse the repository at this point in the history
  • Loading branch information
kmizu committed Nov 16, 2024
1 parent c5dddee commit 3e04ad7
Show file tree
Hide file tree
Showing 13 changed files with 331 additions and 190 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
build/
.bsp/
build.lib/

project/boot
project/metals.sbt
project/project

src/main/parser/onion
target/
.idea/
Expand All @@ -10,3 +14,7 @@ target/
.build.sbt.un~

.settings

.bloop/
.metals/
.vscode/
11 changes: 11 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ lazy val dist = TaskKey[Unit]("onion-dist")

lazy val distPath = SettingKey[File]("onion-dist-path")

lazy val runScript = inputKey[Unit]("Runs the ScriptRunner with arguments")

fullRunInputTask(
runScript,
Compile,
"onion.tools.ScriptRunner"
)

def isArchive(file: File): Boolean = {
val fileName = file.getName
val lc = fileName.toLowerCase
Expand Down Expand Up @@ -50,6 +58,7 @@ def javacc(classpath: Classpath, output: File, log: Logger): Seq[File] = {
"javacc",
"-UNICODE_INPUT=true",
"-JAVA_UNICODE_ESCAPE=true",
"-BUILD_TOKEN_MANAGER=true",
"-OUTPUT_DIRECTORY=%s/onion/compiler/parser".format(output.toString),
"grammar/JJOnionParser.jj"
)
Expand Down Expand Up @@ -117,3 +126,5 @@ lazy val onionSettings = Seq(
mainClass := Some("onion.tools.CompilerFrontend"),
assembly / assemblyJarName := "onion.jar"
)

fork := true
Loading

0 comments on commit 3e04ad7

Please sign in to comment.