[antlr-interest] tree walker executes method call twice?
Rob Dougan
rob_dougan at sympatico.ca
Tue Aug 18 14:18:56 PDT 2009
pass 1 - lex/parse produces heteroAst (nil root)
pass 2 - heteroAst into symbol table walker
nodes reset
pass 3 - heteroAst into type checking walker (adds type info to ast) ---> walks twice
its just a typical expression tree (C-like), the function call (abs(1.0)) is the smallest statement I could get to fail
but
the tree walker always walks the input twice ... almost like the tree was duplicated
hmmm
will continue investigating ...
R
Date: Tue, 18 Aug 2009 12:58:43 -0700
From: jimi at temporal-wave.com
CC: antlr-interest at antlr.org
Subject: Re: [antlr-interest] tree walker executes method call twice?
Rob Dougan wrote:
during testing i noticed that my tree walker seems to be walking the tree twice ...
anyone spot a grammar problem?
What does the input tree look like?
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090818/98bf08e5/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DoubleWalk1.jpg
Type: image/pjpeg
Size: 2918 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090818/98bf08e5/attachment.bin
More information about the antlr-interest
mailing list