Changes in src/Parser/lex.ll [4e9c7c1:8b47e50]
- File:
-
- 1 edited
-
src/Parser/lex.ll (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r4e9c7c1 r8b47e50 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Thu Jul 27 21:46:06201713 * Update Count : 5 5012 * Last Modified On : Wed Jul 12 18:04:44 2017 13 * Update Count : 535 14 14 */ 15 15 16 16 %option yylineno 17 %option noyywrap18 17 %option nounput 19 18 … … 126 125 op_unary {op_unary_only}|{op_unary_binary}|{op_unary_pre_post} 127 126 128 op_binary_only "/"|"%"|" \\"|"^"|"&"|"|"|"<"|">"|"="|"=="|"!="|"<<"|">>"|"<="|">="|"+="|"-="|"*="|"/="|"%="|"\\="|"&="|"|="|"^="|"<<="|">>="127 op_binary_only "/"|"%"|"^"|"&"|"|"|"<"|">"|"="|"=="|"!="|"<<"|">>"|"<="|">="|"+="|"-="|"*="|"/="|"%="|"&="|"|="|"^="|"<<="|">>=" 129 128 op_binary_over {op_unary_binary}|{op_binary_only} 130 129 // op_binary_not_over "?"|"->"|"."|"&&"|"||"|"@=" … … 137 136 138 137 %% 139 /* line directives */138 /* line directives */ 140 139 ^{h_white}*"#"{h_white}*[0-9]+{h_white}*["][^"\n]+["].*"\n" { 141 140 /* " stop highlighting */ … … 233 232 int { KEYWORD_RETURN(INT); } 234 233 __int128 { KEYWORD_RETURN(INT); } // GCC 235 __int128_t { KEYWORD_RETURN(INT); } // GCC236 234 __label__ { KEYWORD_RETURN(LABEL); } // GCC 237 235 long { KEYWORD_RETURN(LONG); } … … 268 266 __typeof { KEYWORD_RETURN(TYPEOF); } // GCC 269 267 __typeof__ { KEYWORD_RETURN(TYPEOF); } // GCC 270 __uint128_t { KEYWORD_RETURN(INT); } // GCC271 268 union { KEYWORD_RETURN(UNION); } 272 269 unsigned { KEYWORD_RETURN(UNSIGNED); } 273 270 __builtin_va_list { KEYWORD_RETURN(VALIST); } // GCC 274 virtual { KEYWORD_RETURN(VIRTUAL); } // CFA275 271 void { KEYWORD_RETURN(VOID); } 276 272 volatile { KEYWORD_RETURN(VOLATILE); } … … 289 285 290 286 /* numeric constants */ 287 "0" { NUMERIC_RETURN(ZERO); } // CFA 288 "1" { NUMERIC_RETURN(ONE); } // CFA 291 289 {decimal_constant} { NUMERIC_RETURN(INTEGERconstant); } 292 290 {octal_constant} { NUMERIC_RETURN(INTEGERconstant); } … … 339 337 "-" { ASCIIOP_RETURN(); } 340 338 "*" { ASCIIOP_RETURN(); } 341 "\\" { ASCIIOP_RETURN(); } // CFA, exponentiation342 339 "/" { ASCIIOP_RETURN(); } 343 340 "%" { ASCIIOP_RETURN(); } … … 364 361 "+=" { NAMEDOP_RETURN(PLUSassign); } 365 362 "-=" { NAMEDOP_RETURN(MINUSassign); } 366 "\\=" { NAMEDOP_RETURN(EXPassign); } // CFA, exponentiation367 363 "*=" { NAMEDOP_RETURN(MULTassign); } 368 364 "/=" { NAMEDOP_RETURN(DIVassign); } … … 419 415 420 416 /* 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); } 422 418 423 419 %%
Note:
See TracChangeset
for help on using the changeset viewer.