[antlr-interest] Manual Tree Walking Vs. Tree Grammars
Patrick Niemeyer
pat at pat.net
Wed Dec 8 09:34:52 PST 2010
On Nov 2, 2010, at 5:59 PM, Patrick Niemeyer wrote:
> Beyond that my only other request is that I'd like to see a little more solidification of the API for node types and tokens in general. If you are walking a node stream and want to navigate things like UP/DOWN and error nodes you have to resort to some shenanigans like comparing strings ("UP"/"DOWN", knowing that node type 0 is reserved as "<invalid>", etc.).
Actually I see now that UP, DOWN, <invalid> are reserved in antlr.runtime.Token.
Pat
More information about the antlr-interest
mailing list