Skip to content

Fireball19/simple-csharp-compiler

Repository files navigation

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>

About

Compiles a subset of C# (Simple-CSharp) to the JVM uses SableCC and Jasmin Assembler.

Topics

Resources

License

Stars

Watchers

Forks