Skip to content

A Simple C# Compiler, Develop under compiler course at IITK. Very few feature support. In future it may be improved.

Notifications You must be signed in to change notification settings

SandipKumar05/C-sharp-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Simple C# Compiler, Develop under compiler course at IITK. Very few feature support. In future it may be improved.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published