Changeset 0720e049 for src/Parser/lex.ll
- Timestamp:
- Aug 11, 2017, 10:33:37 AM (8 years ago)
- 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:
- 54cd58b0
- Parents:
- 3d4b23fa (diff), 59a75cb (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r3d4b23fa r0720e049 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Wed Jul 12 18:04:44201713 * Update Count : 5 3512 * Last Modified On : Thu Jul 27 21:46:06 2017 13 * Update Count : 550 14 14 */ 15 15 16 16 %option yylineno 17 %option noyywrap 17 18 %option nounput 18 19 … … 125 126 op_unary {op_unary_only}|{op_unary_binary}|{op_unary_pre_post} 126 127 127 op_binary_only "/"|"%"|" ^"|"&"|"|"|"<"|">"|"="|"=="|"!="|"<<"|">>"|"<="|">="|"+="|"-="|"*="|"/="|"%="|"&="|"|="|"^="|"<<="|">>="128 op_binary_only "/"|"%"|"\\"|"^"|"&"|"|"|"<"|">"|"="|"=="|"!="|"<<"|">>"|"<="|">="|"+="|"-="|"*="|"/="|"%="|"\\="|"&="|"|="|"^="|"<<="|">>=" 128 129 op_binary_over {op_unary_binary}|{op_binary_only} 129 130 // op_binary_not_over "?"|"->"|"."|"&&"|"||"|"@=" … … 136 137 137 138 %% 138 139 /* line directives */ 139 140 ^{h_white}*"#"{h_white}*[0-9]+{h_white}*["][^"\n]+["].*"\n" { 140 141 /* " stop highlighting */ … … 232 233 int { KEYWORD_RETURN(INT); } 233 234 __int128 { KEYWORD_RETURN(INT); } // GCC 235 __int128_t { KEYWORD_RETURN(INT); } // GCC 234 236 __label__ { KEYWORD_RETURN(LABEL); } // GCC 235 237 long { KEYWORD_RETURN(LONG); } … … 266 268 __typeof { KEYWORD_RETURN(TYPEOF); } // GCC 267 269 __typeof__ { KEYWORD_RETURN(TYPEOF); } // GCC 270 __uint128_t { KEYWORD_RETURN(INT); } // GCC 268 271 union { KEYWORD_RETURN(UNION); } 269 272 unsigned { KEYWORD_RETURN(UNSIGNED); } 270 273 __builtin_va_list { KEYWORD_RETURN(VALIST); } // GCC 274 virtual { KEYWORD_RETURN(VIRTUAL); } // CFA 271 275 void { KEYWORD_RETURN(VOID); } 272 276 volatile { KEYWORD_RETURN(VOLATILE); } … … 285 289 286 290 /* numeric constants */ 287 "0" { NUMERIC_RETURN(ZERO); } // CFA288 "1" { NUMERIC_RETURN(ONE); } // CFA289 291 {decimal_constant} { NUMERIC_RETURN(INTEGERconstant); } 290 292 {octal_constant} { NUMERIC_RETURN(INTEGERconstant); } … … 337 339 "-" { ASCIIOP_RETURN(); } 338 340 "*" { ASCIIOP_RETURN(); } 341 "\\" { ASCIIOP_RETURN(); } // CFA, exponentiation 339 342 "/" { ASCIIOP_RETURN(); } 340 343 "%" { ASCIIOP_RETURN(); } … … 361 364 "+=" { NAMEDOP_RETURN(PLUSassign); } 362 365 "-=" { NAMEDOP_RETURN(MINUSassign); } 366 "\\=" { NAMEDOP_RETURN(EXPassign); } // CFA, exponentiation 363 367 "*=" { NAMEDOP_RETURN(MULTassign); } 364 368 "/=" { NAMEDOP_RETURN(DIVassign); } … … 415 419 416 420 /* unknown characters */ 417 . { printf("unknown character(s):\"%s\" on line %d\n", yytext, yylineno); }421 . { printf("unknown character(s):\"%s\" on line %d\n", yytext, yylineno); } 418 422 419 423 %%
Note:
See TracChangeset
for help on using the changeset viewer.