[antlr-interest] beginer question
    pepone pepone 
    pepone.onrez at gmail.com
       
    Sat Apr 22 08:12:58 PDT 2006
    
    
  
Hello all
I'm begining work with antlr, and i a bit confused. I'm not sure when
to put a rule in lexer or in the parser. There is a general rule to
decide when a rule must be in lexer or in parser?
and i confused with protected rules, what is the diference in a lexer
between this tow rules
protected
LETTER
	:
	'a'..'z'|'A'..'Z'
	;
LETTER
	:
	'a'..'z'|'A'..'Z'
	;
if i don't use protected i get warning when use (LETTER)+ in other
rule, "warning:lexical nondeterminism upon"
Thanks in advance
--
play tetris http://pepone.on-rez.com/tetris
run gentoo http://gentoo-notes.blogspot.com/
    
    
More information about the antlr-interest
mailing list