Decaf is a strongly-typed, object-oriented language with support for inheritance and encapsulation. It is very similar to Java, but less so (you can treat it as a language for learning-only purposes).
Built lexical analyzer, parser, type checker for the Compiler Construction I class at University of Wyoming.
Requires make
.
Build:
cd src && make
Run with the test code (make sure you are in src
directory):
./main < test
Done!
- Decaf is the strongly-typed object-oriented language with support for inheritance and encapsulation.
- Flex is the lexical analyzer (.l or .lpp file extension)
- Bison is the syntactic analyzer, formerly know as yacc (.y or .yy file extension). Compatible with yacc.