Changeset 7e419e7 for src/Parser/lex.ll
- Timestamp:
- Mar 23, 2018, 9:29:09 AM (5 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, 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, with_gc
- Children:
- af1ed1ad
- Parents:
- 766309d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r766309d r7e419e7 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Thu Mar 22 1 4:14:46 201813 * Update Count : 66 712 * Last Modified On : Thu Mar 22 16:47:06 2018 13 * Update Count : 668 14 14 */ 15 15 … … 54 54 55 55 void rm_underscore() { 56 // Remove underscores in numeric constant by copying the non-underscore characters to the front of the string.56 // SKULLDUGGERY: remove underscores (ok to shorten?) 57 57 yyleng = 0; 58 for ( int i = 0; yytext[i] != '\0'; i += 1 ) { 58 for ( int i = 0; yytext[i] != '\0'; i += 1 ) { // copying non-underscore characters to front of string 59 59 if ( yytext[i] != '_' ) { 60 60 yytext[yyleng] = yytext[i]; … … 63 63 } // for 64 64 yytext[yyleng] = '\0'; 65 } 65 } // rm_underscore 66 66 67 67 // Stop warning due to incorrectly generated flex code. … … 304 304 /* identifier */ 305 305 {identifier} { IDENTIFIER_RETURN(); } 306 "`"{identifier}"`" { 307 yytext[yyleng - 1] = '\0'; yytext += 1; // remove backquotes (ok to shorten)306 "`"{identifier}"`" { // CFA 307 yytext[yyleng - 1] = '\0'; yytext += 1; // SKULLDUGGERY: remove backquotes (ok to shorten?) 308 308 IDENTIFIER_RETURN(); 309 309 } … … 404 404 "?"({op_unary_pre_post}|"()"|"[?]"|"{}") { IDENTIFIER_RETURN(); } 405 405 "^?{}" { IDENTIFIER_RETURN(); } 406 "?`"{identifier} { IDENTIFIER_RETURN(); } // unitoperator406 "?`"{identifier} { IDENTIFIER_RETURN(); } // postfix operator 407 407 "?"{op_binary_over}"?" { IDENTIFIER_RETURN(); } // binary 408 408 /*
Note: See TracChangeset
for help on using the changeset viewer.