[antlr-interest] newbie: lexer rules vs parser rules

Terence Parr parrt at cs.usfca.edu
Thu May 18 10:49:58 PDT 2006


On May 18, 2006, at 12:54 AM, <JConner at ssp-uk.com> <JConner at ssp- 
uk.com> wrote:

> Hi All,
>
> I've started to get my feet wet with ANTLR a little, and I've come  
> across a
> few things that I thought would be handled by lexer rules, but seem  
> to be
> handled in general by parser rules.  For example, most of the  
> examples I've
> seen handle numbers (floating, exponents, sign, etc) with parser  
> rules,

Those should be lexer rules...most places I've seen.  Remember FLOAT  
means lexer rule :)

Ter



More information about the antlr-interest mailing list