[antlr-interest] Position of 'scope' delcaration

Bill Steer steerr at bellsouth.net
Tue May 12 09:08:49 PDT 2009


The book says, at the bottom of page 143, "Simply define a named scope 
outside any rule."  If I put a named scope just before the first rule, I 
get an error "unexpected token: scope" when generating code.  Where 
should the 'scope' statement appear in the .g file?

Thanks.

Bill



More information about the antlr-interest mailing list