cpp-peglib/pl0/README.md

31 lines
442 B
Markdown
Raw Normal View History

2017-08-17 21:52:46 +00:00
PL/0 language example
=====================
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!)
2017-08-17 21:57:30 +00:00
Build
-----
```
brew install llvm
export PATH="$PATH:/usr/local/opt/llvm/bin"
make
```
2017-08-17 21:52:46 +00:00
Usage
-----
```
pl0 PATH [--ast] [--llvm] [--jit]
--ast: Show AST tree
--llvm: Dump LLVM IR
--jit: LLVM JIT execution
```