[antlr-interest] Rule coverage testing
Terence Parr
parrt at cs.usfca.edu
Thu Sep 24 11:11:34 PDT 2009
Have you used antlr's -profile option?
Ter
On Sep 18, 2009, at 3:58 AM, Micke Hovmöller wrote:
> I've written a reasonably large grammar for handling poker hand
> histories. I have worked on and off for about a year or so on this.
> During this time, the file format has changed slightly. I suspect
> that I now have a bunch of rules in my grammar that are no longer
> used.
>
> What are best practices for establishing rule coverage test cases?
> Ideally, I want to have a bunch of infiles, run them through the
> grammar and have output displaying which rules were never used.
> Showing frequency of usage would be nice, but it is definitely not
> needed.
>
> This is developed in NetBeans 6.7.1 with the ANTLR plugin, so
> anything that runs in that environment is much preferred to any
> other solution, but I am prepared to switch IDE if that is required.
>
> /Micke
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list