[antlr-interest] Re: strong error recovery
Neurosurg
khamenya at mail.ru
Thu Jul 29 02:01:30 PDT 2004
--- In antlr-interest at yahoogroups.com, Monty Zukowski <monty at c...> wrote:
> Take a look at my parser filter example,
> http://www.codetransform.com/filterexample.html. It requires a bit of
> work and understanding of ANTLR, explained in the article, but it lets
> you use a parser to pick out certain constructs and ignore everything
> else.
I saw your article before writing this post, it didn't helped me.
You pursued a different goal:
[quote]
I was trying out some "extreme programming" while rewriting a parser
for AREV Basic, exploring incremental fixes to the problem of keywords
being used as identifiers. The first one I encountered was labels (as
in GOTO) with the name "Exit", which is also a Basic statement. In
this case I reasoned that I could detect the "GOTO" and then safely
assume that what followed it was a really a label and not a keyword.
[/quote]
I mean, your problem is another special case. I don't know
maybe some ideas might be reused from your example, but it is not
clear to me.
Could we take calc.g from directory "examples" as a guinea
pig and change it?
My real grammar and its furmulae are anyway
more complicated then calc.g, but if we could do this
for calc.g a lot of ppl could benefit from this show case
and use it as "antlr design pattern".
thank you
--
Valery
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