Hi community,

I have the following rule:

unary_expression
  : unary_expr -> ^(UNARY_EXPRESSION unary_expr)
  ;

I want to rewrite it only if unary_expr returns a non-empty result.
Actually, I want to solve the
org.antlr.runtime.tree.RewriteEmptyStreamException: rule unary_expr. I
think, it is quite easy, but I am too new to ANTLR.

Regards,
Christian

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