[antlr-interest] Custom lexer and parser constructors

Bart Kiers bkiers at gmail.com
Tue May 18 09:18:23 PDT 2010


On Tue, May 18, 2010 at 6:04 PM, Cameron Ross <cross at kojeware.com> wrote:

> Hi,
>
> Is there a way to define custom constructors for ANTLR lexers and parsers?
>

Sure, you can create custom methods, c-tors and attributes in:

@parser::members {
  // here
}

or

@lexer::members {
  // here
}

Regards,

Bart Kiers.


More information about the antlr-interest mailing list