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 ASSERT_BEGIN expression ASSERT_END
; ;
expression: expression:
fun_call | simple_expression |
numeric |
variable |
expression OP_LT expression | expression OP_LT expression |
expression OP_GT expression | expression OP_GT expression |
expression OP_LTE expression | expression OP_LTE expression |
@ -140,9 +138,7 @@ expression:
expression OP_SHR expression expression OP_SHR expression
; ;
semi_expression: semi_expression:
fun_call simple_expression |
numeric |
variable |
OP_LT expression | OP_LT expression |
OP_GT expression | OP_GT expression |
OP_LTE expression | OP_LTE expression |
@ -154,5 +150,10 @@ semi_expression:
OP_SHL expression | OP_SHL expression |
OP_SHR expression OP_SHR expression
; ;
simple_expression:
fun_call |
numeric |
variable
;
%% %%