[antlr-interest] Lexer rule problem - ANTLR 2.7.7

Mark Volkmann r.mark.volkmann at gmail.com
Fri Feb 1 09:50:15 PST 2008


On Feb 1, 2008 11:08 AM, Steve Bennett <stevagewp at gmail.com> wrote:
> On 2/1/08, Gavin Lambert <antlr at mirality.co.nz> wrote:
> > Unit testing.  Construct a test harness for your lexer/parser in
> > the language of your choice (eg. via JUnit, NUnit, CppUnit, or one
> > of the many other frameworks) and run it frequently to ensure that
> > changes you've made to your grammar haven't broken anything.
>
> Is there any tutorial on this? It sounds like a good idea.

There is a tutorial on gUnit at
http://www.antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing.
I think the latest version doesn't work with recent ANTLR intermediate
builds though. Hopefully there will be an update soon.

-- 
R. Mark Volkmann
Object Computing, Inc.


More information about the antlr-interest mailing list