D'oh! I knew I was doing something stupid.. Making sure I put it after options and tokens fixes it in the combined grammar.
Thanks Sam! -Bill On 2/16/11 10:27 AM, "Sam Harwell" <[email protected]> wrote: > Hi Bill, > > You need to place the @header block after the options{} block. > > Sam > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Bill Schongar > Sent: Wednesday, February 16, 2011 8:04 AM > To: [email protected] > Subject: [antlr-interest] NPE when adding @header? (ANTLRWorks 1.4.2, Mac > OSX 10.6.6) > > Hi folks, > > I¹m just getting started with Antlr, and have a basic grammar working. > However, as soon as I add an @header declaration I get an NPE when I go to > Debug it, almost as if I hadn¹t properly terminated the @header declaration. > > If I remove @header everything works fine, and I can run debug with my > sample text, get my expected output, etc. > > Any thoughts on what I¹m doing wrong? System info, relevant section of the > grammar and NPE are added at the end for reference. > > Thanks, > -Bill > > 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.
