Changes in src/Parser/lex.ll [bd4d011:ba2356b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
rbd4d011 rba2356b 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Mon Mar 13 08:36:17201713 * Update Count : 5 0612 * Last Modified On : Thu May 18 09:03:49 2017 13 * Update Count : 513 14 14 */ 15 15 … … 77 77 // numeric constants, CFA: '_' in constant 78 78 hex_quad {hex}("_"?{hex}){3} 79 integer_suffix "_"?(([uU] [lL]?)|([uU]("ll"|"LL")?)|([lL][uU]?)|("ll"|"LL")[uU]?)79 integer_suffix "_"?(([uU](("ll"|"LL"|[lL])[iI]|[iI]?("ll"|"LL"|[lL])?))|([iI](("ll"|"LL"|[lL])[uU]|[uU]?("ll"|"LL"|[lL])?))|(("ll"|"LL"|[lL])([iI][uU]|[uU]?[iI]?))) 80 80 81 81 octal_digits ({octal})|({octal}({octal}|"_")*{octal}) … … 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 real_decimal {decimal_digits}"."{exponent}?{floating_suffix}? 94 real_fraction "."{decimal_digits}{exponent}?{floating_suffix}? 95 real_constant {decimal_digits}{real_fraction} 96 96 exponent "_"?[eE]"_"?[+-]?{decimal_digits} 97 // GCC: D (double), DL (long double) and iI (imaginary) suffixes 98 floating_suffix "_"?([fFdDlL][iI]?|"DL"|[iI][lLfFdD]?) 99 //floating_suffix "_"?([fFdD]|[lL]|[D][L])|([iI][lLfFdD])|([lLfFdD][iI])) 97 // GCC: D (double) and iI (imaginary) suffixes, and DL (long double) 98 floating_suffix "_"?([fFdDlL][iI]?|[iI][lLfFdD]?|"DL") 100 99 floating_constant (({real_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}? 101 100
Note: See TracChangeset
for help on using the changeset viewer.