> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan 5 14:18:41 UTC 2024 x86_64 GNU/Linux 22:48:27 up 2 days 11:43, 2 users, load average: 0.35, 0.27, 0.37
This commit is contained in:
parent
3938534a04
commit
b4f72c1d57
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
%%
|
||||
|
||||
$?[a-zA-Z]{2,3} { yylval = isa_reg_str2val(yytext + 1, &success); if(!success) { return YYerror; } }
|
||||
$?[a-zA-Z]{2,3} { yylval = isa_reg_str2val(yytext + 1, &success); if(!success) { return YYerror; } }
|
||||
0[xX][0-9a-fA-F]+ { yylval = strtoul(yytext, NULL, 16); return HEX_NUMBER; }
|
||||
[0-9]+ { yylval = strtoul(yytext, NULL, 10); return NUMBER; }
|
||||
[+\-*/()] { return *yytext; }
|
||||
|
|
|
@ -47,6 +47,6 @@ number
|
|||
| HEX_NUMBER
|
||||
|
||||
register
|
||||
: REGISTER
|
||||
: '$' REGISTER { $$ = $2; }
|
||||
|
||||
%%
|
||||
|
|
Loading…
Add table
Reference in a new issue