Changeset 3f0c6a5 for src/Parser/lex.ll
- Timestamp:
- Oct 28, 2016, 1:40:31 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 066d77a
- Parents:
- 77971f6 (diff), 47a8d17 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r77971f6 r3f0c6a5 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Tue Oct 18 22:19:37201613 * Update Count : 4 8812 * Last Modified On : Wed Oct 26 17:32:30 2016 13 * Update Count : 499 14 14 */ 15 15 … … 91 91 92 92 decimal_digits ({decimal})|({decimal}({decimal}|"_")*{decimal}) 93 fractional_constant ({decimal_digits}?"."{decimal_digits})|({decimal_digits}".") 93 real_decimal {decimal_digits}"." 94 real_fraction "."{decimal_digits} 95 real_constant {decimal_digits}?{real_fraction} 94 96 exponent "_"?[eE]"_"?[+-]?{decimal_digits} 95 97 // GCC: D (double), DL (long double) and iI (imaginary) suffixes 96 98 floating_suffix "_"?([fFdDlL][iI]?|"DL"|[iI][lLfFdD]?) 97 99 //floating_suffix "_"?([fFdD]|[lL]|[D][L])|([iI][lLfFdD])|([lLfFdD][iI])) 98 floating_constant (({ fractional_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?100 floating_constant (({real_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}? 99 101 100 102 binary_exponent "_"?[pP]"_"?[+-]?{decimal_digits} … … 281 283 {octal_constant} { NUMERIC_RETURN(INTEGERconstant); } 282 284 {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 283 287 {floating_constant} { NUMERIC_RETURN(FLOATINGconstant); } 284 288 {hex_floating_constant} { NUMERIC_RETURN(FLOATINGconstant); }
Note: See TracChangeset
for help on using the changeset viewer.