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: [email protected]
CC: [email protected]
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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

<<attachment: DoubleWalk1.jpg>>

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to