A repo for cool compiler
There are four parts of the compiler: lexer, parser, semant analyzer, code generator. Use the Makefile in the /src directory to build.
run: ./lexer example.cl | ./parser | ./semant | ./cgen example.s
There may be small bugs in lexer.