[antlr-interest] String Literals

Sinan sinan.karasu at boeing.com
Wed Jul 17 12:32:42 PDT 2002


lawchangyen1978 wrote:
> 
> Hi.
> 
> I am really puzzled.
> 
> I have a parser rule ...
> 
> class WhiteP extends Parser;
> options {
>         exportVocab=White;
>         k = 1;
> }
> 
> startRule : "hello"
>           ;
> 


try

startRule : "hello" EOF
           ;

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list