Compiler for a simple programming language called Tony, written for the purposes of the NTUA ECE undergraduate compilers course. The specification of the language can be found under docs/tony2020.pdf
.
- C++17
- LLVM, version 10 or higher (tested up to version 17).
- fmt library, https://fmt.dev/11.1/get-started/#installation
Simply run make
to create the compiler executable, tc.
Run ./tc testcase.tony
. A file named ir.ll is created which contains the LLVM IR of the input program. You can display the usage of tc by running ./tc --help
Modern Compiler Implementation in C, by Andrew W. Appel https://www.cs.princeton.edu/~appel/modern/c/