[antlr-interest] Re: TreeParser fails to find matched node in input tree

Ric Klaren klaren at cs.utwente.nl
Thu May 8 02:44:49 PDT 2003


On Wed, May 07, 2003 at 08:13:10PM -0000, micheal_jor wrote:
> As a kind of sanity check, I have modified the grammar to generate
> Java and C++ instead and the relevant section of the output is the
> same. This issue would be present in a Java and C++ version of the
> TreeParser too.

Could you sent me the code generated for the rules ? I'm not 100% sure if
it's a bug or not. Also do you have a dump of the real structure of the AST
that went wrong?

I know that for myself working with antlr treeparsers generated quite a lot
of 'oh duh!' moments, when something turned out to be slightly different as
expected, but quite logical in retrospective.

Not sure if this is such a case. My first impression is at least that it
should work. Did you check with -traceTreeparser that the right alternative
was chosen?

Cheers,

Ric
--
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Before they invented drawing boards, what did they go back to?


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list