compilerbau-WS17-18

Build Status

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?

Setup

Install using

cabal build && cabal install

Maybe update cabal before using

cabal update && cabal install

Usage

jc File.java -l logFile

Run

jc -h

for additional information

jc usage

Test Framework

Inside the project dir run

cabal repl test-core

and call

main

in order to see the tests running.

Gif of test-core repl

Resources