diff --git a/nemu/src/monitor/sdb/addrexp.y b/nemu/src/monitor/sdb/addrexp.y index 584e12e..b2a9ad3 100644 --- a/nemu/src/monitor/sdb/addrexp.y +++ b/nemu/src/monitor/sdb/addrexp.y @@ -31,10 +31,10 @@ input expression : number { $$ = $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); } | expression '>' expression { $$ = ($1 > $3); } | expression '<' expression { $$ = ($1 < $3); } | expression '+' expression { $$ = $1 + $3; }