Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 746 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 746 Bytes

Final Project(CS335A) IIT KANPUR

Description

C# code compiler with basic function.

Language Features:

  • 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.

steps to run

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

Notice: Unmaintained

This repo is no longer maintained.
Code might not be work as expected.