> 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:
parent
370dc66f05
commit
3f9d84b539
1 changed files with 1 additions and 4 deletions
|
@ -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; }
|
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
Loading…
Reference in a new issue