No description
- C++ 91.4%
- ANTLR 4.2%
- Meson 2.5%
- M4 0.6%
- Shell 0.5%
- Other 0.8%
| include | ||
| sample-programs | ||
| src | ||
| .gitignore | ||
| compile.sh | ||
| libc.mpy | ||
| Makefile | ||
| meson.build | ||
| MiniC.g4 | ||
| README | ||
| shim.c | ||
| test.mc | ||
Yet Another Compiler ==================== Build requirements: antlr4, meson, ninja, llvm Build instructions ------------------ Adjust paths in Makefile, meson.build and compile.sh as needed. 1. make (everytime you change the grammar) 2. meson build (one-time) 3. ninja -C build To use: `compile.sh <prog.mpy>` Why is this called minipy? -------------------------- I originally envisioned a Python-like syntax but Antlr got the better of me. Credits ------- Substantial material from https://llvm.org/docs/tutorial/index.html What doesn't work ----------------- Nonscalars