Skip to content

tzhang449/CMinusMinus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMinusMinus

CMinusMinus is a compiler project which makes a compiler to parse a simple C-style language into MIPS machine code. This project is to learn the basic concepts of a compiler. The formal CFG of the languange can be seen in the files folder.

This project is in progess.

[lab 1]

  • A lexical analyser is made for the C Minus language using Flex.
  • A parser is generated to parse the C Minus text into an abstract syntax tree using Bison.

To generate the parser, run

cd lab1/Code && make

To parse a CMinusMinus text, run

./parser code.cmm

[lab 2]

  • Do semantic check on the generated AST tree

To do: Error type 9 need better print func and caller's format

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published