
Is there any guidance, patterns, or advice for creating a language parser/grammar, test first? The tree constructor API for the grammar seems very focused on creating the entire grammar in a single method (shared context) which makes testing very difficult.
The other option I see is to write a top down parser by hand, which should allow full testing.
Thanks