> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux 19:41:00 up 1 day 5:16, 2 users, load average: 0.49, 0.84, 0.85
This commit is contained in:
parent
8101d73575
commit
2a1f781753
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ input
|
||||||
|
|
||||||
expression
|
expression
|
||||||
: number { $$ = $1; }
|
: number { $$ = $1; }
|
||||||
|
| expression '>' '=' expression { $$ = ($1 >= $4); }
|
||||||
|
| expression '<' '=' expression { $$ = ($1 <= $4); }
|
||||||
|
| expression '=' '=' expression { $$ = ($1 == $4); }
|
||||||
|
| expression '!' '=' expression { $$ = ($1 == $4); }
|
||||||
|
| expression '>' expression { $$ = ($1 > $3); }
|
||||||
| expression '<' expression { $$ = ($1 < $3); }
|
| expression '<' expression { $$ = ($1 < $3); }
|
||||||
| expression '+' expression { $$ = $1 + $3; }
|
| expression '+' expression { $$ = $1 + $3; }
|
||||||
| expression '-' expression { $$ = $1 - $3; }
|
| expression '-' expression { $$ = $1 - $3; }
|
||||||
|
|
Loading…
Reference in a new issue