[antlr-interest] Understanding priorities in lexing (newbie)

Kay Roepke kroepke at classdump.org
Fri Jul 13 00:59:25 PDT 2007


On Jul 13, 2007, at 9:43 AM, Wincent Colaiuta wrote:

> In other words, the separation of lexer and parser is just  
> something that you have to accept and is unlikely to ever change.

Also, were the lexer dependent upon the parser you couldn't store the  
tokens in an archive nor could you use a totally different lexer  
(e.g. a handwritten one, output from another lexer generator).

It's sometimes hard to draw the line between the two, especially for  
"weird" languages, where you sometimes feel the urge to somehow  
direct the lexer from the parser, unfortunately. But keeping them  
separate is a Good Thing(tm), IMHO.

cheers,
-k
-- 
Kay Röpke
http://classdump.org/






More information about the antlr-interest mailing list