> 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
 23:12:20  up 2 days 12:07,  2 users,  load average: 0.48, 0.40, 0.38
This commit is contained in:
tracer-ysyx 2024-01-15 23:12:20 +08:00 committed by xinyangli
parent 370dc66f05
commit 3f9d84b539

View file

@ -29,7 +29,6 @@ input
expression expression
: number { $$ = $1; } : number { $$ = $1; }
| register { $$ = $1; }
| expression '+' expression { $$ = $1 + $3; } | expression '+' expression { $$ = $1 + $3; }
| expression '-' expression { $$ = $1 - $3; } | expression '-' expression { $$ = $1 - $3; }
| expression '*' expression { $$ = $1 * $3; } | expression '*' expression { $$ = $1 * $3; }
@ -45,9 +44,7 @@ expression
number number
: NUMBER : NUMBER
| REGISTER { $$ = $1; }
| HEX_NUMBER | HEX_NUMBER
register
: REGISTER { $$ = $1; }
%% %%