[antlr-interest] parser constructor actions
Vidar Håkestad
vidar at hawkis.com
Sat Apr 22 04:41:44 PDT 2006
Put initialization code after the parser class definition within curly braces:
class SomeParser extends Parser;
{
// init code here
}
firstProduction
:
;
On Saturday 22 April 2006 13:19, ak wrote:
> hi.
>
> i'm using a header-section to import something and a unnamed section for
> declaring a member-variable.
>
> i can't find a way to put the initialization of the member-variable(new
> Vector()) into the constructor(s) within a grammar-file.
>
> is there something i've missed?
>
> mfg
>
> alexander
More information about the antlr-interest
mailing list