Argh. I think I figured it out. It was still a "lexer grammar", not a "grammar".
On Jan 18, 2009, at 04:13:27, Rick Mann wrote: > I'm having a hard time getting a handle on how all the various > StringTemplates get instantiated and invoked. I thought I was getting > the hang of it, then I expanded my grammar a bit beyond the super- > simple one given in the codegen wiki page. > > I added a parser rule to what was originally just a lexical rule, and > when processing my test grammar, I suddenly got this complaint: > > error(10): internal error: T.g : java.util.NoSuchElementException: no > such attribute: bitsets in template context [headerFile lexer] > > The lexer() ST doesn't have a bitsets parameter, and neither do its > counterparts in C.stg or Java.stg. Why does it suddenly want it in > mine? > > If I add a bitsets parameter, it seems to come out okay, but I'm > reluctant to do that since no one else seemed to need it; I figure I'm > doing something else wrong. > > TIA, > -- > Rick -- Rick 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 -~----------~----~----~----~------~----~------~--~---
