I forgot to mention I'm using Java as the resulting language.

The thing is I've moved some semantic checking I was doing in the parser
into a tree grammar and now the *start* argument of a rule is returning the
matching text instead of what it returns in the parser (the line and
position of what the rule matched and some other things I don't understand).
With that information I managed to get the line and position but I'm stuck
now in the tree grammar.

I'm new to ANTLR and chose it to do a project for university.

Sorry if I wasn't clear enough earlier. The question would be:
How can I get the line and position of what a rule matched in a tree
grammar?

Thanks!

P.S: Sorry about my english, I'm from Uruguay and our first language is
spanish. :-P

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.

Reply via email to