[antlr-interest] += Output Option clarification

Gavin Lambert antlr at mirality.co.nz
Tue Apr 3 14:06:28 PDT 2007


At 04:57 4/04/2007, bryce.alcock at sungard.com wrote:

>I get the following error in my TreeWalker Grammar file:
>
>error(134): ExprWalker.g:43:14: rule '+=' list labels are not 
>allowed w/o output option: lids
[...]
>Can I get some clarification or direction about what I should try 
>to do
>in this situation.

I think it means you need to put this at the top of your grammar 
(assuming you are generating StringTemplate-based output, of 
course):

options {
   output = template;
}



More information about the antlr-interest mailing list