Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
A compiler for small-C. (Principle of compiler course project)
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
scan.l parser.y : generate the grammar tree predefine.h : include all header, and define some function in helper.c helper.c: some function to debug && handle string main.c : function main in it tree.h tree.c: define the struct of the grammer tree, including some functions to control it symboltable.h symboltable.c: define the symbol table and the function to handle them typecheck.h typecheck.c: include some functions used to typecheck block.h block.c: create block for each stmtblock. When the block is built, the symboltable will be created. codegen.h codegen.c: include the function to generate code makefile: make get "scc" file README: I'm README :)