C# code compiler with basic function.
- Data Types: int, string, float, double, char
- Any kind of Array(single and double)
- All Operators
- Loops: for, while, do while
- Selection Statements: if, if-else, switch
- Multiple Declarations: int a,b,c=3;
- Complicated expression evaluation
- Type Checking
- Function call
- Break, Continue statment
Note - All the feature are not tested.
c# test code in tests/test.cs
python codegen.py tests/test.cs
Above will generate mips code.
run this mips code in any mips simulater like: spim
This repo is no longer maintained.
Code might not be work as expected.