[antlr-interest] newbie question, escaped characters

Rob Shields rob at cmsnet.org.uk
Tue Mar 11 16:04:55 PDT 2008


Richard Clark wrote:
> On Tue, Mar 11, 2008 at 1:15 PM, Rob Shields <rob at cmsnet.org.uk> wrote:
 >
> If you have an options { ... } section at the top of your grammar,
> what does it say?
> 
> ...Richard

options
{
   charVocabulary = '\u0000'..'\uFFFE';  // It doesn't work without this.
                                   // FFFE so that it can cope with EOF.
}

-Rob





More information about the antlr-interest mailing list