I had an idea to try and merge the lexer and the parser. It is, after
all, a PEG-generated lexer, and PEGs are supposed to generate parsers,
right? But the elegance of the separation at this point is so nice and
straightforward that I don't think I win anything by merging them.
rendering tools for the envisioned basics: IF, LOOP, CONTEXT,
TEMPLATE, VARIABLE/METHOD, and TEXT.
The idea will ultimately be a two-step: a second parser for the
language we'll be parsing(!), so that you'll be able to say:
document
= if:story if:series if:page
And be able to say with confidence that the document being read conforms
to the language.