On Tuesday, 14 June 2016 at 17:27:21 UTC, Joerg Joergonson wrote:
I wonder if someone could write a program generator that generates random valid D code from one of these grammars and runs it in DMD to find compilation errors.

It shouldn't be too hard to do and only needs to provide coverage of the grammar, not all possible programs. This might help validate a grammar(could be designed to be generic and for other parsing tools).

Patches welcome: https://github.com/Hackerpilot/generated

Reply via email to