Skip to content
Snippets Groups Projects
Verified Commit 99f069f0 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

> 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
No related branches found
No related tags found
No related merge requests found
......@@ -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', ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment