We're building a compiler. It'll compile things.
More specifically, this compiler will be able to translate a narrow subset of Java to JVM bytecode, taking a scenic tour through all the necessary steps in the form of multiple passes: lexing, parsing, typechecking, codegen'ing and serializing. TODO more prose?
Install using
cabal build && cabal install
Maybe update cabal before using
cabal update && cabal install
jc File.java -l logFile
Run
jc -h
for additional information
Inside the project dir run
cabal repl test-core
and call
main
in order to see the tests running.