[antlr-interest] Literals translation

de Jong, Ron ron at iesys.com.au
Thu Dec 8 21:56:27 PST 2005


Hi List,

 

To simplify my parser I would really like the lexer to convert

the string INFINITY to be a FLOAT of a particular value.

I couldn't see any easy way to do this apart from overriding
testLiteralsTable().

I was hoping to do this declaratively.

 

Cheers,

Ron

 

This e-mail (which includes any attachments) is intended only for the
use of the individual or entity named above and may contain information
that is confidential and privileged and the copyright of Intelligent
Energy Systems Pty Ltd or a third party. Any views expressed in this
e-mail are those of the individual sender, except where the sender
specifically states them to be the views of Intelligent Energy Systems
Pty Ltd. There is no warranty that this e-mail is error or virus free.
If you are not the intended recipient, you must not disclose or use the
information contained in it. If you have received this e-mail in error,
please notify the sender immediately by return e-mail and delete the
original message.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20051209/17f711f1/attachment.html


More information about the antlr-interest mailing list