[antlr-interest] parser/lexer invocation: performance/optimization question
Ric Klaren
klaren at cs.utwente.nl
Wed Jun 9 10:02:06 PDT 2004
On Wed, Jun 09, 2004 at 09:25:43AM -0700, Peggy Fieland wrote:
> I tried this , but it crashes and burns as the first
> time I execute this the lexerSharedInputState is null
> :-(.
You did the first time part *and* the per file file part for your first
input file?
The code is pretty much direct copy paste from a working program. It could
be helpfull if you posted a bit of code or a backtrace from the crash.
Other option is that if you use the noConstructors options and forget to
call the baseclass initializer?
At least as soon as a lexer is initialized with a stream or inputbuffer it
should have a valid LexerInputState. (Try stepping through the constructor
of your lexer)
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755 ----
-----+++++*****************************************************+++++++++-------
Human beings, who are almost unique in having the ability to learn
from the experience of others, are also remarkable for their apparent
disinclination to do so. --- Douglas Adams, Last Chance to See
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list