[antlr-interest] Lexer documentation, problem with context-sensitive lexers in C++
Ric Klaren
klaren at cs.utwente.nl
Fri May 23 06:33:50 PDT 2003
On Fri, May 23, 2003 at 03:02:04PM +0200, Anthony Brenelière wrote:
> .. but in C++ how can the inTable boolean be initialized ? I should
> have to change the lexer constructor, but its part of the generated
> code.
You can add a custom constructor with overloading (see the C++ template
grammar in the docs). Or you can add a initialization method to the lexer
which you call before parser.
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Wo das Chaos auf die Ordnung trifft, gewinnt meist das Chaos, weil es
besser organisiert ist. --- Friedrich Nietzsche
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list