Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/lex.ll

    r1b29996 r9059213  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Wed Oct 26 17:32:30 2016
    13  * Update Count     : 499
     12 * Last Modified On : Tue Oct 18 22:19:37 2016
     13 * Update Count     : 488
    1414 */
    1515
     
    9191
    9292decimal_digits ({decimal})|({decimal}({decimal}|"_")*{decimal})
    93 real_decimal {decimal_digits}"."
    94 real_fraction "."{decimal_digits}
    95 real_constant {decimal_digits}?{real_fraction}
     93fractional_constant ({decimal_digits}?"."{decimal_digits})|({decimal_digits}".")
    9694exponent "_"?[eE]"_"?[+-]?{decimal_digits}
    9795                                // GCC: D (double), DL (long double) and iI (imaginary) suffixes
    9896floating_suffix "_"?([fFdDlL][iI]?|"DL"|[iI][lLfFdD]?)
    9997                                //floating_suffix "_"?([fFdD]|[lL]|[D][L])|([iI][lLfFdD])|([lLfFdD][iI]))
    100 floating_constant (({real_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?
     98floating_constant (({fractional_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?
    10199
    102100binary_exponent "_"?[pP]"_"?[+-]?{decimal_digits}
     
    283281{octal_constant} { NUMERIC_RETURN(INTEGERconstant); }
    284282{hex_constant}  { NUMERIC_RETURN(INTEGERconstant); }
    285 {real_decimal}  { NUMERIC_RETURN(REALDECIMALconstant); } // must appear before floating_constant
    286 {real_fraction} { NUMERIC_RETURN(REALFRACTIONconstant); } // must appear before floating_constant
    287283{floating_constant}     { NUMERIC_RETURN(FLOATINGconstant); }
    288284{hex_floating_constant} { NUMERIC_RETURN(FLOATINGconstant); }
Note: See TracChangeset for help on using the changeset viewer.