Changes in src/Parser/lex.ll [984dce6:c6b1105]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r984dce6 rc6b1105 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Mon Mar 21 23:33:46201613 * Update Count : 45 012 * Last Modified On : Thu Jun 23 07:29:30 2016 13 * Update Count : 457 14 14 */ 15 15 … … 49 49 50 50 void rm_underscore() { 51 // remove underscores in numeric constant52 int j= 0;51 // Remove underscores in numeric constant by copying the non-underscore characters to the front of the string. 52 yyleng = 0; 53 53 for ( int i = 0; yytext[i] != '\0'; i += 1 ) { 54 54 if ( yytext[i] != '_' ) { 55 yytext[ j] = yytext[i];56 j+= 1;55 yytext[yyleng] = yytext[i]; 56 yyleng += 1; 57 57 } // if 58 58 } // for 59 yyleng = j;60 59 yytext[yyleng] = '\0'; 61 60 } … … 121 120 h_white [ ]|{h_tab} 122 121 123 // o perators122 // overloadable operators 124 123 op_unary_only "~"|"!" 125 124 op_unary_binary "+"|"-"|"*" … … 129 128 op_binary_only "/"|"%"|"^"|"&"|"|"|"<"|">"|"="|"=="|"!="|"<<"|">>"|"<="|">="|"+="|"-="|"*="|"/="|"%="|"&="|"|="|"^="|"<<="|">>=" 130 129 op_binary_over {op_unary_binary}|{op_binary_only} 131 op_binary_not_over "?"|"->"|"&&"|"||"132 operator {op_unary_pre_post}|{op_binary_over}|{op_binary_not_over}130 // op_binary_not_over "?"|"->"|"."|"&&"|"||"|"@=" 131 // operator {op_unary_pre_post}|{op_binary_over}|{op_binary_not_over} 133 132 134 133 %x COMMENT … … 274 273 {identifier} { IDENTIFIER_RETURN(); } 275 274 {attr_identifier} { ATTRIBUTE_RETURN(); } 276 "`" { BEGIN BKQUOTE; }275 "`" { BEGIN BKQUOTE; } 277 276 <BKQUOTE>{identifier} { IDENTIFIER_RETURN(); } 278 277 <BKQUOTE>"`" { BEGIN 0; }
Note:
See TracChangeset
for help on using the changeset viewer.