This project is based on META-II by Val Schorre.
Meta generates C code implementing a parser/compiler for a EBNF-like grammar file.
Meta is written in itself so it needs to be bootstrapped from a C implementation. I provide meta.c so you just need to compile it.
To bootstrap:
make meta
To compile a grammar in the same directory (for test purposes):
make grammar
To compile it directly:
./meta grammar.meta grammar.c gcc grammar.c -o grammar
- Refactoring with literate programming
- More Wirth-like metasyntax
- Better command line interpreter
- Better error and warning messages
- Create useful grammar examples
- Create a demonstration compiler