https://en.wikipedia.org/wiki/PL/0
- PL/0 PEG syntax
- AST generation with symbol scope
- Interpreter (slow...)
- LLVM Code generation
- LLVM JIT execution (fast!)
brew install llvm
export PATH="$PATH:/usr/local/opt/llvm/bin"
make
pl0 PATH [--ast] [--llvm] [--jit]
--ast: Show AST tree
--llvm: Dump LLVM IR
--jit: LLVM JIT execution