D grammar
Brian Schott via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 14 10:48:40 PDT 2016
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
More information about the Digitalmars-d
mailing list