[Tinyos-help] "kind_" vs. "postkind_"

Sean Walton swalton at cs.utah.edu
Tue Dec 19 13:37:36 PST 2006


David-
I'm at the point where I am trying to make sense of the AST I've built 
from the grammar.  It looks like you use something like a visitor 
pattern to walk through the tree.  I've constructed the callback table 
along with the functions themselves, but I am trying to get things in a 
different order than a pre-order traversal.  Is that what "postkind_..." 
does?  Does "kind_..." perform the pre-order, and the "postkind_..." 
does the post order?  The reason I'm asking is the "postkind_..." and 
"kind_..." appear to have the same numeric value.  If my assumption is 
wrong, could you please explain what they are for?
Thanks!
-Sean Walton


More information about the Tinyos-help mailing list