Hi all, I have a curious problem when populating AST tree with custom nodes, or to be more precise, with their constructors. If, in the tree grammar (I basically construct AST tree in parser and in the next step I rewrite it using tree walker), I am using: STORE<UnresolvedLocal>[$ID, expressionResolver]
then constructor UnresolvedLocal(int ttype, CommonTree id, ExpressionResolver expressionResolver) is picked up as expected But, if I am using the following form: STORE<LValueError> $lhs expression then it gets transformed to: new LValueError(stream_STORE.nextNode()), where nextNode() returns Object, where I expected integer carrying token type to be used Is this a bug of some kind? Can you explain it to me? Thank you very much in advance -- Greetings Marcin Rzeźnicki List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-- 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.
