Changes in src/Parser/lex.ll [1b29996:9059213]
- File:
-
- 1 edited
-
src/Parser/lex.ll (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r1b29996 r9059213 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Wed Oct 26 17:32:30201613 * Update Count : 4 9912 * Last Modified On : Tue Oct 18 22:19:37 2016 13 * Update Count : 488 14 14 */ 15 15 … … 91 91 92 92 decimal_digits ({decimal})|({decimal}({decimal}|"_")*{decimal}) 93 real_decimal {decimal_digits}"." 94 real_fraction "."{decimal_digits} 95 real_constant {decimal_digits}?{real_fraction} 93 fractional_constant ({decimal_digits}?"."{decimal_digits})|({decimal_digits}".") 96 94 exponent "_"?[eE]"_"?[+-]?{decimal_digits} 97 95 // GCC: D (double), DL (long double) and iI (imaginary) suffixes 98 96 floating_suffix "_"?([fFdDlL][iI]?|"DL"|[iI][lLfFdD]?) 99 97 //floating_suffix "_"?([fFdD]|[lL]|[D][L])|([iI][lLfFdD])|([lLfFdD][iI])) 100 floating_constant (({ real_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?98 floating_constant (({fractional_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}? 101 99 102 100 binary_exponent "_"?[pP]"_"?[+-]?{decimal_digits} … … 283 281 {octal_constant} { NUMERIC_RETURN(INTEGERconstant); } 284 282 {hex_constant} { NUMERIC_RETURN(INTEGERconstant); } 285 {real_decimal} { NUMERIC_RETURN(REALDECIMALconstant); } // must appear before floating_constant286 {real_fraction} { NUMERIC_RETURN(REALFRACTIONconstant); } // must appear before floating_constant287 283 {floating_constant} { NUMERIC_RETURN(FLOATINGconstant); } 288 284 {hex_floating_constant} { NUMERIC_RETURN(FLOATINGconstant); }
Note:
See TracChangeset
for help on using the changeset viewer.