Changeset d3b5a14 for src/Parser/lex.ll
- Timestamp:
- Jun 19, 2021, 3:50:04 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4b891e9
- Parents:
- 572a02f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r572a02f rd3b5a14 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Thu Apr 1 13:22:31202113 * Update Count : 75 412 * Last Modified On : Sat Jun 19 15:23:05 2021 13 * Update Count : 758 14 14 */ 15 15 … … 117 117 hex_constant {hex_prefix}{hex_digits}{integer_suffix_opt} 118 118 119 // GCC: D (double) and iI (imaginary) suffixes, and DL (long double)119 // GCC: floating D (double), imaginary iI, and decimal floating DF, DD, DL 120 120 exponent "_"?[eE]"_"?[+-]?{decimal_digits} 121 121 floating_size 16|32|32x|64|64x|80|128|128x 122 122 floating_length ([fFdDlLwWqQ]|[fF]{floating_size}) 123 123 floating_suffix ({floating_length}?[iI]?)|([iI]{floating_length}) 124 floating_suffix_opt ("_"?({floating_suffix}|"DL"))? 124 decimal_floating_suffix [dD][fFdDlL] 125 floating_suffix_opt ("_"?({floating_suffix}|{decimal_floating_suffix}))? 125 126 decimal_digits ({decimal})|({decimal}({decimal}|"_")*{decimal}) 126 127 floating_decimal {decimal_digits}"."{exponent}?{floating_suffix_opt} … … 234 235 continue { KEYWORD_RETURN(CONTINUE); } 235 236 coroutine { KEYWORD_RETURN(COROUTINE); } // CFA 237 _Decimal32 { KEYWORD_RETURN(FLOAT); } // GCC 238 _Decimal64 { KEYWORD_RETURN(DOUBLE); } // GCC 239 _Decimal128 { KEYWORD_RETURN(uuFLOAT128); } // GCC 236 240 default { KEYWORD_RETURN(DEFAULT); } 237 241 disable { KEYWORD_RETURN(DISABLE); } // CFA
Note: See TracChangeset
for help on using the changeset viewer.