Switch to maven, write coverage tests (there are food choices for java ones ) to run against the binary parser and see which methods are never called . Methods are named after rules.
Jim On Sep 18, 2009, at 3:58 AM, Micke Hovmöller <[email protected]> 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 List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
