On Tue, Mar 16, 2010 at 4:54 AM, Brian Catlin <bri...@sannas.org> wrote:

>
> When I compile the grammar with ANTLR, I get the following:
>
>
>
> warning(149): Commands.g:0:0: rewrite syntax or operator with no output
> option; setting output=AST
>


Hi Brian,

The '!' and '^' are tree-rewrite operators, so ANTLR is telling you here
that you're trying to rewrite something without specifying you're building a
tree. Doing a CRL+F I found this rule:

commands
  :  ( script_command
     | dump_command
            ! show_command // <- !
     )*
  ;

Notice the '!' (exclamation mark) that should be a '|' (pipe):

commands
   :  ( script_command
     | dump_command
            | show_command // <- |
     )*
  ;

Regards,

Bart.

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 il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to