ANTLRGrammarParseBehavior and Tool
1 posts in topic
Flat View  Flat View

Posted By:   Sinan_Karasu
Posted On:   Tuesday, March 12, 2002 12:29 PM

Attempting to put the 2.7.2a2 into netbeans, I am attempting to inherit antlr.g. However it appears that there are some methods such as reportError, and antlrTool.error, that might actually be better positioned in ANTLRGrammarParseBehavior and/or it's inheritors. Any comments ??


Re: ANTLRGrammarParseBehavior and Tool

Posted By:   Monty_Zukowski  
Posted On:   Wednesday, March 13, 2002 06:33 AM

Why are you inheriting antlr.g? I found for my TAGS generator that inheriting wasn't flexible enough for me to identify definitions and uses. I copied antlr.g and then hacked away at it. When antlr.g changes between releases it amounts to the same amount of work to change it whether it's inherited or not.

I do agree that reportError and such might better be located outside of antlr.g so they can be reused.

About | Sitemap | Contact