Changeset 3f0c6a5 for src/Parser/lex.ll


Ignore:
Timestamp:
Oct 28, 2016, 1:40:31 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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.
Message:

Merge branch 'master' into tuples

Conflicts:

src/Parser/parser.cc
src/Parser/parser.yy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/lex.ll

    r77971f6 r3f0c6a5  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Tue Oct 18 22:19:37 2016
    13  * Update Count     : 488
     12 * Last Modified On : Wed Oct 26 17:32:30 2016
     13 * Update Count     : 499
    1414 */
    1515
     
    9191
    9292decimal_digits ({decimal})|({decimal}({decimal}|"_")*{decimal})
    93 fractional_constant ({decimal_digits}?"."{decimal_digits})|({decimal_digits}".")
     93real_decimal {decimal_digits}"."
     94real_fraction "."{decimal_digits}
     95real_constant {decimal_digits}?{real_fraction}
    9496exponent "_"?[eE]"_"?[+-]?{decimal_digits}
    9597                                // GCC: D (double), DL (long double) and iI (imaginary) suffixes
    9698floating_suffix "_"?([fFdDlL][iI]?|"DL"|[iI][lLfFdD]?)
    9799                                //floating_suffix "_"?([fFdD]|[lL]|[D][L])|([iI][lLfFdD])|([lLfFdD][iI]))
    98 floating_constant (({fractional_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?
     100floating_constant (({real_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?
    99101
    100102binary_exponent "_"?[pP]"_"?[+-]?{decimal_digits}
     
    281283{octal_constant} { NUMERIC_RETURN(INTEGERconstant); }
    282284{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
    283287{floating_constant}     { NUMERIC_RETURN(FLOATINGconstant); }
    284288{hex_floating_constant} { NUMERIC_RETURN(FLOATINGconstant); }
Note: See TracChangeset for help on using the changeset viewer.