Does nobody know a solution other than the one with rewrite rules?

Am 26.10.2011 12:43, schrieb Christian:
> Hi community,
>
> I want to use, e.g., the MINUS and the POSITIVE token for the '-'
> literal. Is there a way to write it shorter than with rewrite rules?
>
> For example, I want to replace the following
>     '-' unary_expression -> ^(NEGATIVE unary_expression);
> by
>     '-'<NEGATIVE> unary_expression;
> or
>     NEGATIVE['-'] unary_expression;
>
> I know that and why the last two aproaches do not work. But perhaps
> there is another way that I do not know so far.
>
> Regards,
> Christian
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


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