A Compiler for a subset of Java ☕
Use the stack build tool to
install the compiler locally (execute stack install in the root directory).
- Install the stack build tool
- Go into the root directory of this project and
-
use
stack buildto build the projectYou may also use the flag
--file-watch. That waystackrecompiles the files insrcevery time you change a file. -
use
stack installto install a compiled binary of this compiler locallyThe program should be in your
$PATHwith the nametiny-java. Use e.g.tiny-java foo.javato compile a file.tiny-java --helpshould you provide with some more information on how to use it. -
use
stack testto let stack run all tests in thetestdirectoryWe use hspec for our test suite.
-
use
stack replto build the project and load it into aghci-sessionIn the
ghci-session you can use:reload(shorthand:r) to trigger a rebuild of the project and load the new build in the session. -
use
stack haddockto generate html-documentation in/docsThe documentation is then available here (after pushing the updated
docs-directory).
-