Cluster common part between expression and semi-expression.

This commit is contained in:
Stefano Sanfilippo 2014-11-24 00:14:27 +01:00
parent b35d565ec6
commit 16772f287e

View File

@ -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
;
%%