Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/lex.ll

    r4e9c7c1 r8b47e50  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Thu Jul 27 21:46:06 2017
    13  * Update Count     : 550
     12 * Last Modified On : Wed Jul 12 18:04:44 2017
     13 * Update Count     : 535
    1414 */
    1515
    1616%option yylineno
    17 %option noyywrap
    1817%option nounput
    1918
     
    126125op_unary {op_unary_only}|{op_unary_binary}|{op_unary_pre_post}
    127126
    128 op_binary_only "/"|"%"|"\\"|"^"|"&"|"|"|"<"|">"|"="|"=="|"!="|"<<"|">>"|"<="|">="|"+="|"-="|"*="|"/="|"%="|"\\="|"&="|"|="|"^="|"<<="|">>="
     127op_binary_only "/"|"%"|"^"|"&"|"|"|"<"|">"|"="|"=="|"!="|"<<"|">>"|"<="|">="|"+="|"-="|"*="|"/="|"%="|"&="|"|="|"^="|"<<="|">>="
    129128op_binary_over {op_unary_binary}|{op_binary_only}
    130129                                // op_binary_not_over "?"|"->"|"."|"&&"|"||"|"@="
     
    137136
    138137%%
    139                                 /* line directives */
     138                                   /* line directives */
    140139^{h_white}*"#"{h_white}*[0-9]+{h_white}*["][^"\n]+["].*"\n" {
    141140        /* " stop highlighting */
     
    233232int                             { KEYWORD_RETURN(INT); }
    234233__int128                { KEYWORD_RETURN(INT); }                                // GCC
    235 __int128_t              { KEYWORD_RETURN(INT); }                                // GCC
    236234__label__               { KEYWORD_RETURN(LABEL); }                              // GCC
    237235long                    { KEYWORD_RETURN(LONG); }
     
    268266__typeof                { KEYWORD_RETURN(TYPEOF); }                             // GCC
    269267__typeof__              { KEYWORD_RETURN(TYPEOF); }                             // GCC
    270 __uint128_t             { KEYWORD_RETURN(INT); }                                // GCC
    271268union                   { KEYWORD_RETURN(UNION); }
    272269unsigned                { KEYWORD_RETURN(UNSIGNED); }
    273270__builtin_va_list { KEYWORD_RETURN(VALIST); }                   // GCC
    274 virtual                 { KEYWORD_RETURN(VIRTUAL); }                    // CFA
    275271void                    { KEYWORD_RETURN(VOID); }
    276272volatile                { KEYWORD_RETURN(VOLATILE); }
     
    289285
    290286                                /* numeric constants */
     287"0"                             { NUMERIC_RETURN(ZERO); }                               // CFA
     288"1"                             { NUMERIC_RETURN(ONE); }                                // CFA
    291289{decimal_constant} { NUMERIC_RETURN(INTEGERconstant); }
    292290{octal_constant} { NUMERIC_RETURN(INTEGERconstant); }
     
    339337"-"                             { ASCIIOP_RETURN(); }
    340338"*"                             { ASCIIOP_RETURN(); }
    341 "\\"                    { ASCIIOP_RETURN(); }                                   // CFA, exponentiation
    342339"/"                             { ASCIIOP_RETURN(); }
    343340"%"                             { ASCIIOP_RETURN(); }
     
    364361"+="                    { NAMEDOP_RETURN(PLUSassign); }
    365362"-="                    { NAMEDOP_RETURN(MINUSassign); }
    366 "\\="                   { NAMEDOP_RETURN(EXPassign); }                  // CFA, exponentiation
    367363"*="                    { NAMEDOP_RETURN(MULTassign); }
    368364"/="                    { NAMEDOP_RETURN(DIVassign); }
     
    419415
    420416                                /* unknown characters */
    421 .                               { printf("unknown character(s):\"%s\" on line %d\n", yytext, yylineno); }
     417.                       { printf("unknown character(s):\"%s\" on line %d\n", yytext, yylineno); }
    422418
    423419%%
Note: See TracChangeset for help on using the changeset viewer.