Changeset ba2356b for src/Parser


Ignore:
Timestamp:
May 18, 2017, 11:11:32 AM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
02153feb, 17e0dc9
Parents:
2f484f5
Message:

additional change for integer_suffix and cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/lex.ll

    r2f484f5 rba2356b  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Wed May 17 21:37:51 2017
    13  * Update Count     : 510
     12 * Last Modified On : Thu May 18 09:03:49 2017
     13 * Update Count     : 513
    1414 */
    1515
     
    7777                                // numeric constants, CFA: '_' in constant
    7878hex_quad {hex}("_"?{hex}){3}
    79 integer_suffix "_"?(([uU][lL]?[lL]?[iI]?)|([uU][iI]?[lL]?[lL]?)|([lL][lL]?[uU]?[iI]?)|([iI][lL]?[lL]?[uU]?))
     79integer_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]?)))
    8080
    8181octal_digits ({octal})|({octal}({octal}|"_")*{octal})
     
    9595real_constant {decimal_digits}{real_fraction}
    9696exponent "_"?[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)
     98floating_suffix "_"?([fFdDlL][iI]?|[iI][lLfFdD]?|"DL")
    10099floating_constant (({real_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?
    101100
Note: See TracChangeset for help on using the changeset viewer.