Archive for April, 2012

Regenerate parser tables in PLY

Parsers are difficult in general to develop using TDD, because there is too much of a tendency to specify a complete grammar. Worse, the tests you want to write early – did my tokenizer successfully recognize those numbers? – tend to become invalid as you extend the grammar, adding more requirements about the structure of [...]