Compiler Principle's Project
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
code-generator
parser
.gitignore
README.md
build.sh
report.pdf

README.md

Small-C-Compiler

The main idea and work explanation can be found in report.pdf.

All the files contain:Small.l,Small.y,treeNode.h,README.md,makefile,testcases,CodeGeneration.c,avlTree.h,checkReserved.c

## How to run :

Firstly,input "sh build.sh" in the root directory.

Secondly, ./Parser "Source File Name" "Output File Name" to generate syntax tree.

Thirdly, ./scc "Source File Name" "Output File Name" to generate llvm codes.

Last, lli xx.ll to run the program by llvm.