> Manual commit: Bug fix for lexer, '%eax' off-by-1 error

U201614531
recolic
Linux RECOLICPC 5.4.2-arch1-1 #1 SMP PREEMPT Thu, 05 Dec 2019 12:29:40 +0000 x86_64 GNU/Linux
 03:48:03 up 3 days, 11:06,  1 user,  load average: 0.30, 0.46, 0.91
308942fa767af1bf582c0816fcd66d09f9cfeea3
parent 82207f96
......@@ -19,6 +19,6 @@
"&&" {return T_LOGICAL_AND;}
[-+*/()] {return yytext[0];}
"%"[a-z]{3} {yylval.ival = ((uint32_t)yytext[1] << 8) + yytext[2]; return T_REG;}
"%"[a-z]{3} {yylval.ival = ((uint32_t)yytext[2] << 8) + yytext[3]; return T_REG;}
%%
// Registers: eax='a'+'x', ebx='b'+'x', ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment