[antlr-interest] Disabling overriden rule during iheritance.

Bryan Ewbank ewbank at gmail.com
Fri Jun 10 02:02:46 PDT 2005


Another option is to remove IDENT from the base grammr, then create a
second derived grammar defining IDENT as required.

On 6/10/05, Ric Klaren <ric.klaren at gmail.com> wrote:
> On 6/10/05, Mark Bednarczyk <voytechs at yahoo.com> wrote:
> > I need to disable a lexer rule in the subclass grammar file.
> > That is B inherits from 1.
> >
> > Base class (A) contains:
> >
> > IDENT: blah blah blah...
> >
> > sub grammar file (B) overrides:
> >
> > IDENT: /* empty */
> >
> > What I really need to disable the IDENT rule since the token
> > type IDENT is assigned manually in a different way.


More information about the antlr-interest mailing list