I've implemented:
- "input builder" partially covering the grammar;
- basic data structures for the "in-memory" version.