Cluster common part between expression and semi-expression.
This commit is contained in:
parent
b35d565ec6
commit
16772f287e
13
Monicelli.y
13
Monicelli.y
|
@ -125,9 +125,7 @@ assert_stmt:
|
|||
ASSERT_BEGIN expression ASSERT_END
|
||||
;
|
||||
expression:
|
||||
fun_call |
|
||||
numeric |
|
||||
variable |
|
||||
simple_expression |
|
||||
expression OP_LT expression |
|
||||
expression OP_GT expression |
|
||||
expression OP_LTE expression |
|
||||
|
@ -140,9 +138,7 @@ expression:
|
|||
expression OP_SHR expression
|
||||
;
|
||||
semi_expression:
|
||||
fun_call
|
||||
numeric |
|
||||
variable |
|
||||
simple_expression |
|
||||
OP_LT expression |
|
||||
OP_GT expression |
|
||||
OP_LTE expression |
|
||||
|
@ -154,5 +150,10 @@ semi_expression:
|
|||
OP_SHL expression |
|
||||
OP_SHR expression
|
||||
;
|
||||
simple_expression:
|
||||
fun_call |
|
||||
numeric |
|
||||
variable
|
||||
;
|
||||
%%
|
||||
|
||||
|
|
Reference in New Issue
Block a user