Skip to content

Commit 2a42dd2

Browse files
committed
Temporary commit to be rebased. Contains rewrite of specialiser.
1 parent 32ac934 commit 2a42dd2

File tree

4 files changed

+309
-185
lines changed

4 files changed

+309
-185
lines changed

hkmc2/jvm/src/test/scala/hkmc2/MLsDiffMaker.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ abstract class MLsDiffMaker extends DiffMaker:
6060
dbgParsing.isSet
6161
|| dbgElab.isSet
6262
|| debug.isSet
63+
|| dbgSpec.isSet
6364

6465
val etl = new TraceLogger:
6566
override def doTrace = dbgElab.isSet || scope.exists:
@@ -193,7 +194,7 @@ abstract class MLsDiffMaker extends DiffMaker:
193194
showElaboratedTree.get.foreach: post =>
194195
output(s"Elaborated tree:")
195196
output(e.showAsTree(using post))
196-
val spec = Specialiser(stl, curCtx)
197+
val spec = Specialiser(stl)
197198
val spBlk = spec.topLevel(e)
198199
showSpecialisedTree.get.foreach: post =>
199200
output(s"Specialised tree:")

hkmc2/shared/src/main/scala/hkmc2/MLsCompiler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ class MLsCompiler(preludeFile: os.Path):
6767
newCtx.nest(N).givenIn:
6868

6969
val (blk, newCtx) = elab.importFrom(mainParse.resultBlk)
70-
val spec = Specialiser(stl, newCtx)
70+
val spec = Specialiser(stl)
7171
val spBlk = spec.topLevel(blk)
7272
val low = ltl.givenIn:
7373
codegen.Lowering()
7474
val jsb = codegen.js.JSBuilder()
75-
val le = low.program(spBlk)
75+
val le = low.program(blk)
7676
val baseScp: utils.Scope =
7777
utils.Scope.empty
7878
val nestedScp = baseScp.nest

0 commit comments

Comments
 (0)