Our grammar is quite complex (similar to Python one, with INDENT DEDENT
stuff and so on...) and it's attached to the mail.
We would like to use templates and rewrite.
I encountered this rule:
pointer :
| 'pointer' '.' t=(SDT | ID) ID (',' ID)* -> ( 'pointer' '.' t ID )+
| 'pointer' '.' t=(SDT | ID) ID -> pointer(type={$t.text},name={$ID.text})
;

I wrote this one because I saw a little example at
http://www.stringtemplate.org/wiki/display/~admin/2008/04/11/Rewrite+rules.
In the grammar options I placed:
output = template;
rewrite = true;

I would like to know if it is possible to do so, cause of when generating
the code, I get a "Unexpected token (" at first alternative, after the ->
Accordingly to the page on the stringtemplate wiki, It should work...
Let me know.
Thanks in advance,

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

Attachment: twyncat.g
Description: Binary data

-- 
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