[antlr-interest] Should a Lexer barf on any input file?

micheal_jor open.zone at virgin.net
Wed May 22 21:35:57 PDT 2002


I added a driver loop similar to that below to my under-development 
Lexer to be able to test it as I go.

   while ( !done ) {
      Token t = lexer.nextToken();
      PrintLine("Token: "+t);
   }

My query is this: is it possible for the Lexer to barf on a file that 
the combined Parser/Lexer would accept?

Basically, I'm trying to determine if it is possible for the Lexer 
alone to reject a file that the Parser/Lexer combo accepts.

Cheers,

Micheal




 

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



More information about the antlr-interest mailing list