Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 672 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 672 Bytes

simple-csharp-compiler

Java CI with Gradle

How to run

1. Run SableCC

java -jar libs/sablecc.jar -d src simple_csharp_grammar.scc

Move lexer.dat and parser.dat from src/main/java/sablecc to build/classes/java/main/sablecc.

2. Run the StupsCompiler with Gradle

./gradlew run --args='-mode <filename.cs>'

3. Run the Jasmin assembler

java -jar libs/jasmin/jasmin.jar <filename.j>

4. Run the generated Java file

java <filename>