[antlr-interest] how to match empty file?

Sriram Durbha cintyram at yahoo.com
Thu Oct 24 13:42:45 PDT 2002


expr : slist  EOF! ;
slist :( stmnt SEMI! )*;
stmnt : assignExpr ;


this rule with an empty input file is crashing
where as it works for atleast one valid input line;

how can i match an empty file?
thankyou
ram

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

 

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



More information about the antlr-interest mailing list