Skip to content

Commit

Permalink
refact
Browse files Browse the repository at this point in the history
  • Loading branch information
mio-19 committed Jan 18, 2025
1 parent 4084fca commit 4742bf5
Show file tree
Hide file tree
Showing 32 changed files with 6 additions and 4,574 deletions.
35 changes: 6 additions & 29 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -554,22 +554,11 @@ lazy val err = crossProject(JSPlatform, JVMPlatform, NativePlatform)
)
.jvmSettings(commonJvmLibSettings)

lazy val tyckBase = crossProject(JSPlatform, JVMPlatform, NativePlatform)
lazy val semantic = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("tyck-base"))
.crossType(CrossType.Full)
.in(file("semantic"))
.dependsOn(utils, syntax, err)
.settings(
name := "tyck-base",
commonSettings
)
.jvmSettings(commonJvmLibSettings)

lazy val tyck = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("tyck"))
.dependsOn(utils, syntax, err, tyckBase, eval)
.settings(
commonSettings
)
Expand Down Expand Up @@ -737,7 +726,7 @@ lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.dependsOn(utils, reader, syntax, pretty, tyck)
.dependsOn(utils, reader, syntax, pretty, semantic)
.settings(
name := "core",
assembly / assemblyOutputPath := file("target") / "chester-core.jar",
Expand Down Expand Up @@ -1251,21 +1240,11 @@ lazy val buildTool = crossProject(JVMPlatform)
)
)

lazy val eval = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("eval"))
.dependsOn(tyckBase)
.settings(
commonSettings
)
.jvmSettings(commonJvmLibSettings)

lazy val interpreter = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("interpreter"))
.dependsOn(eval, reader, tyck)
.dependsOn(reader, semantic)
.settings(commonSettings)
// https://github.com/b-studios/scala-graal-truffle-example/blob/c2747a6eece156f878c5b934116aaa00a2cd6311/build.sbt
.settings(
Expand Down Expand Up @@ -1351,8 +1330,7 @@ lazy val root = crossProject(JSPlatform, JVMPlatform, NativePlatform)
syntax,
err,
pretty,
tyck,
tyckBase,
semantic,
platform,
jsForJvm,
core,
Expand All @@ -1361,7 +1339,6 @@ lazy val root = crossProject(JSPlatform, JVMPlatform, NativePlatform)
lsp,
buildProtocol,
buildTool,
eval,
interpreter,
js,
site,
Expand Down
15 changes: 0 additions & 15 deletions eval/src/main/scala/chester/eval/Eval.scala

This file was deleted.

15 changes: 0 additions & 15 deletions eval/src/main/scala/chester/runtime/Value.scala

This file was deleted.

Loading

0 comments on commit 4742bf5

Please sign in to comment.