Example:

ruleOne: r2+=ruleTwo+ 'END';
{

ListIterator<Token> li = $r2.listIterator();
while(li.hasNext()){

System.out.println("MyText = " + li.next().myText); // ERROR HERE

}

}
ruleTwo returns [ String myText ]: id1=ID '::' id2=ID
{

$myText = new String($id2.text + "..." + $id1.text);

}

Te correct way to access returned values?

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