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

JConner at ssp-uk.com JConner at ssp-uk.com
Thu May 18 00:54:59 PDT 2006


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,
whereas I would have expected these to have been handled by the lexer and
presented to the parser as one entity (ie, as just a number).  Am I
misunderstanding something?

John

________________________________________________________________________
This communication and any attachments contain information which is confidential and may also be privileged.  It is for the exclusive use of the intended recipient(s).  If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful.

If you have received this communication in error, please return it with the title received in error to networks at ssp-uk.com then delete the email and destroy any copies of it.

E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses.  We do not accept liability for any such matters or their consequences.  

Anyone who communicates with us by e-mail is taken to accept the risks in doing so.

All correspondence is supplied on a confidential basis and remains the property of Software Solutions Partners Limited.  Opinions, conclusions and other information in this e-mail and any attachments which do not relate to the official business of the firm are neither given nor endorsed by it.
________________________________________________________________________



More information about the antlr-interest mailing list