Punkt0 Compiler
Authors: Daniil Pintjuk, Kim Börk
Copiles a subset of Scala (Punkt0) to JVM bytecode.
How to build
-
install JDK or java runtime
-
install scala
-
install sbt
-
in projects root directory start sbt:
sbt
- in sbt type
compile
How to run
to run tests in sbt type:
test
to compile a punkt0 program in sbt type:
run -d <outdir> <path to pinkt0 program>
to compile with tail recursion optimization:
run -o -d <outdir> <path to pinkt0 program>
to print ast before and after tail recursion optimization:
run -o --symid <path to pinkt0 program>
to execute your compiled Punkt0 program:
cd <outdir>
java Main