Skip to content

Commit

Permalink
Merge pull request #167 from rise-lang/macro-replacement-dpia
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-steuwer authored May 4, 2021
2 parents 90863d2 + 97af7a3 commit 91a3d2a
Show file tree
Hide file tree
Showing 195 changed files with 3,511 additions and 2,888 deletions.
21 changes: 11 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lazy val commonSettings = Seq(

lazy val riseAndShine = (project in file("."))
.aggregate(executor, CUexecutor)
.dependsOn(meta, riseAndShineMacros, arithExpr, executor, CUexecutor, elevate)
.dependsOn(meta, arithExpr, executor, CUexecutor, elevate)
.settings(
name := "riseAndShine",
version := "1.0",
Expand Down Expand Up @@ -50,7 +50,16 @@ lazy val riseAndShine = (project in file("."))
lazy val generateRISEPrimitives = taskKey[Unit]("Generate RISE Primitives")

generateRISEPrimitives := {
runner.value.run("meta.RisePrimitiveGenerator",
runner.value.run("meta.generator.RisePrimitives",
(dependencyClasspath in Compile).value.files,
Seq((scalaSource in Compile).value.getAbsolutePath),
streams.value.log).failed foreach (sys error _.getMessage)
}

lazy val generateDPIAPrimitives = taskKey[Unit]("Generate DPIA Primitives")

generateDPIAPrimitives := {
runner.value.run("meta.generator.DPIAPrimitives",
(dependencyClasspath in Compile).value.files,
Seq((scalaSource in Compile).value.getAbsolutePath),
streams.value.log).failed foreach (sys error _.getMessage)
Expand All @@ -67,14 +76,6 @@ lazy val meta = (project in file("meta"))
libraryDependencies += "org.scalameta" %% "scalameta" % "4.4.10",
)

lazy val riseAndShineMacros = (project in file("macros"))
.settings(
name := "riseAndShineMacros",
version := "1.0",
commonSettings,
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
)

lazy val arithExpr = project in file("lib/arithexpr")

lazy val executor = project in file("lib/executor")
Expand Down
163 changes: 0 additions & 163 deletions macros/src/main/scala/shine/macros/Primitive.scala

This file was deleted.

64 changes: 0 additions & 64 deletions meta/src/main/scala/meta/NatParser.scala

This file was deleted.

Loading

0 comments on commit 91a3d2a

Please sign in to comment.