[antlr-interest] Re : antlr v3 C target EOF PUSHSTREAM
Gavin Lambert
antlr at mirality.co.nz
Thu Jan 12 15:27:37 PST 2012
At 11:55 13/01/2012, Rampon Jerome wrote:
>-this obliges to redefine nextToken, nextTokenStr and emit
>from antlr3lexer.c as they are all static. Not so good in term of
>maintenance
>for the grammar.
So override mTokens instead; that's definitely a virtual method
pointer. Just save the existing pointer before you overwrite
it. (This becomes your "base method" pointer, which you call
inside your override.)
More information about the antlr-interest
mailing list