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.