[antlr-interest] DOT missing in java.g example

ronald.petty at milliman.com ronald.petty at milliman.com
Tue Apr 27 09:16:13 PDT 2004


Hi,
I was looking some more over the java.g grammar and noticed that DOT=. is 
commented out in the Lexer.  However I don't see a Token or Literal 
representation for DOT except for


// a numeric literal
NUM_INT
        {boolean isDecimal=false; Token t=null;}
    :   '.' {_ttype = DOT;}
            (   ('0'..'9')+ (EXPONENT)? (f1:FLOAT_SUFFIX {
                {
                                if (t != null && t.getText
                        _ttype = NUM_FLOAT;
                                }

How does this work for class.method if you have never seen a NUM_INT yet 
to add a '.' or DOT="." to the literals?

Thanks
Ron

**************************************************************************************
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Unless indicated
to the contrary: it does not constitute professional advice or 
opinions upon which reliance may be made by the addressee or any
other party, and it should be considered to be a work in progress.
**************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20040427/aff2a3fe/attachment.html


More information about the antlr-interest mailing list