MIT 6.035: Computer Language Engineering
- Project 1: Scanner and Parser
- Project 2: Semantic Checker
- Project 3: Code Generator
- Project 4: Dataflow Analysis
- Project 5: Optimizer
- Java
- ant
Assume basic components like git
has been installed.
sudo apt install ant
sudo apt install openjdk-8-jdk
Assume basic components like homebrew
have been installed.
brew install ant
To compile the compiler,
ant
To test all the testcases of one component,
# or something like that
ant test_scanner
To test a single testcase,
./run.sh --target=scan tests/scanner/input/char1
- Compilers: Principles, Techniques and Tools (Dragon book)
- http://6.035.scripts.mit.edu/sp16/schedule.html
- ANTLR (Another Tool for Language Recognition)
- Google Java Style Guide
- ANTLR2 Manual