Skip to content

Commit b91aa15

Browse files
committed
Pushed majority of logic for the simple sub algorithm
1 parent af9ac51 commit b91aa15

File tree

5 files changed

+714
-143
lines changed

5 files changed

+714
-143
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class MLsCompiler(preludeFile: os.Path, mkOutput: ((Str => Unit) => Unit) => Uni
8383
val parsed = mainParse.resultBlk
8484
val (blk0, _) = elab.importFrom(parsed)
8585
val blk: semantics.Term.Blk = blk0.copy(stats = semantics.Import(State.runtimeSymbol, runtimeFile.toString) :: blk0.stats)
86+
val typ = new semantics.SimpleSub(stl)
87+
typ.analyzeTermTypes(blk)
8688
val spBlk = Specialiser(stl).topLevel(blk)
8789
val low = ltl.givenIn:
8890
new codegen.Lowering()

0 commit comments

Comments
 (0)