[antlr-interest] how to define a named scope

William Tribbey will at tribbey.net
Wed Aug 11 09:38:30 PDT 2010


Hello Everybody, I am trying to use a named scope. I have searched the
archives and I find a reference to the same
question from last year (posted below) that describes the problem I am
having. I have the book and am looking at the
same page. I feel like I am missing a piece of information that I need to
get this to work.

Cheers / Will T.


[antlr-interest] Position of 'scope' delcaration*Bill Steer* steerr at
bellsouth.net <https://mail.google.com/a/tribbey.net/mail/?extsrc=mailto&url=mailto%3Aantlr-interest%2540antlr.org%3FSubject%3DRe%3A%2520%255Bantlr-interest%255D%2520Position%2520of%2520%2527scope%2527%2520delcaration%26In-Reply-To%3D%253C4A099F11.5070001%2540bellsouth.net%253E>
*Tue May 12 09:08:49 PDT 2009*


   - Previous message: [antlr-interest] Advice on using Antlr in
Eclipse<034452.html>
   - Next message: [antlr-interest] C# grammar for ANTRL3 <034454.html>
   - *Messages sorted by:* [ date ] <date.html#34453> [ thread
]<thread.html#34453>
    [ subject ] <subject.html#34453> [ author ] <author.html#34453>

------------------------------

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