how to set/invert universe (non-lexical)
0 posts in topic
Flat View  Flat View

Posted By:   kaleb_pederson
Posted On:   Friday, January 30, 2004 03:58 PM

I am trying to convert the Javascript grammar to LL(k), but it has a lot of "but not" sections that I'm not sure how to deal with in ANTLR. For example:

"continue" /* no line terminator here */ (identifier)? SEMI

If I could set the universe in the middle of the 'continueStatement' definition, and then complement what's not allowed (white space in this case), then I would be able to come up with what I need. Are there other ways to do this?

So what are my options?



About | Sitemap | Contact