[antlr-interest] antlr3: 'header' is renamed to 'not @header'

Terence Parr parrt at cs.usfca.edu
Sun Jan 30 10:20:51 PST 2011


javadoc comments mess with it; also order matters. 

> nobody else complains

because this user error.  v2 to v3 is not trivial. perhaps someone else at your company can help you?

Ter
On Jan 30, 2011, at 9:54 AM, Тихомиров Валентин wrote:

> I compile the example http://www.antlr.org/wiki/display/ANTLR3/Migrating+from+ANTLR+2+to+AN...
> 
>  header {
>    import java.util.*;
>  }
> 
> reports "'header' not expected grammar".
> 
>  @header {
>    import java.util.*;
>  }
> 
> reports "'@' not expected 'grammar'".
> 
> Has Terrence ever tested his tool submitting it to the public? Why nobody else complains?
> 
> Thanks,
> Valentin.
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list