Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/lex.ll

    r984dce6 r4040425  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Mon Mar 21 23:33:46 2016
    13  * Update Count     : 450
     12 * Last Modified On : Wed Mar  2 18:07:20 2016
     13 * Update Count     : 434
    1414 */
    1515
     
    2727
    2828#include "lex.h"
     29#include "ParseNode.h"
    2930#include "parser.h"                                                                             // YACC generated definitions based on C++ grammar
    30 #include "ParseNode.h"
    31 #include "TypedefTable.h"
    3231
    3332char *yyfilename;
     
    4544#define NUMERIC_RETURN(x)       rm_underscore(); RETURN_VAL( x ) // numeric constant
    4645#define KEYWORD_RETURN(x)       RETURN_CHAR( x )                        // keyword
    47 #define IDENTIFIER_RETURN()     RETURN_VAL( typedefTable.isKind( yytext ) )
     46#define IDENTIFIER_RETURN()     RETURN_VAL( (typedefTable.isIdentifier( yytext ) ? IDENTIFIER : typedefTable.isTypedef( yytext ) ? TYPEDEFname : TYPEGENname ) )
    4847#define ATTRIBUTE_RETURN()      RETURN_VAL( ATTR_IDENTIFIER )
    4948
     
    9695fractional_constant ({decimal_digits}?"."{decimal_digits})|({decimal_digits}".")
    9796exponent "_"?[eE]"_"?[+-]?{decimal_digits}
    98                                 // GCC: D (double), DL (long double) and iI (imaginary) suffixes
    99 floating_suffix "_"?([fFdDlL][iI]?|"DL"|[iI][lLfFdD]?)
    100                                 //floating_suffix "_"?([fFdD]|[lL]|[D][L])|([iI][lLfFdD])|([lLfFdD][iI]))
     97                                // GCC: D (double), LD (long double) and iI (imaginary) suffixes
     98floating_suffix "_"?([fFdD]?|([lL]?)|([iI][lLfFdD]?)|([lLfFdD][iI]))
    10199floating_constant (({fractional_constant}{exponent}?)|({decimal_digits}{exponent})){floating_suffix}?
    102100
Note: See TracChangeset for help on using the changeset viewer.