Hi,

My grammar processes an assignment list. Collecting result templates in the 
following way works:

prog : (s+=assignment)+ -> template(in={$s}) "<in>";


The above handles the assignment list as a whole. Now I'd like to do something 
with each assignment individually. I changed the grammar:

prog : assignmentList -> template(in={$assignmentList.st}) "<in>";
assignmentList : assignment al=assignmentList? -> template(in={$assignment.st}, 
in2={$al.st}) "[<in>]<\n><in2>";

This results in an error: java.lang.IllegalArgumentException: cannot embed 
template anonymous in itself


Is there a way to solve this with anonymous templates, or do I have to say 
goodbye to inline templates at this point?


Thanks,
  András
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to