[antlr-interest] String Literals

lawchangyen1978 lawchang at comp.nus.edu.sg
Sun Jul 14 02:53:03 PDT 2002


I am really puzzled.

I have a parser rule ...

class WhiteP extends Parser;
options {
	k = 1;

startRule : "hello"

When the input is "hello", i do not understand why ANTLR complains 
unexpected character "h". Can someone help? By declaring "hello", i 
saw the Lexer adding it to the string literals table. What did i miss 


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

More information about the antlr-interest mailing list