Skip to content

linzebing/compiler

Repository files navigation

def.h: definitions of the tree node of the syntax tree
README: readme
smallc.y: Yacc program
smallc.l:Lex program
makefile: makefile
5120309085-report.pdf: report
translate.h: translate the syntax tree to three-address code
interpete.h: interpret the IR into MIPS code
ast.h: relevent functions of syntax tree
header.h: header.h
lzb.s: MIPS code of read() and write()
semantics.h: to check semantic errors
optimize.h: do some optimizations and allocate registers

About

Source code for a C-like compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published