changeset 901 | 33cff35bdc1a |
parent 870 | 739039774cee |
child 956 | ae9782e62bdd |
--- a/progs/fun/funt.sc Thu Dec 01 13:07:32 2022 +0000 +++ b/progs/fun/funt.sc Fri Dec 02 16:26:20 2022 +0000 @@ -1,3 +1,4 @@ + // A Small Compiler for a Simple Functional Language // - includes a lexer and a parser // - performs tail-call optimisations @@ -165,7 +166,7 @@ // import ammonite.ops._ // post 2.5.0 ammonite -// import os._ +import os._ def compile_to_file(prog: List[Decl], class_name: String) : Unit = write.over(pwd / s"$class_name.j", compile(prog, class_name))