added less and greater operator
This commit is contained in:
parent
7547331705
commit
970b45ac3c
|
@ -58,7 +58,7 @@
|
||||||
/* Operator associativity */
|
/* Operator associativity */
|
||||||
%right '='
|
%right '='
|
||||||
%left '+' '-' '*' '/'
|
%left '+' '-' '*' '/'
|
||||||
%left OpEquals OpNot
|
%left OpEquals OpNot '<' '>'
|
||||||
%left OpAnd OpOr OpXor
|
%left OpAnd OpOr OpXor
|
||||||
%left OpBitand OpBitor OpBitxor OpBitnot
|
%left OpBitand OpBitor OpBitxor OpBitnot
|
||||||
|
|
||||||
|
@ -108,7 +108,9 @@ oparith: expr '+' expr
|
||||||
| expr '/' expr
|
| expr '/' expr
|
||||||
| '-' expr %prec '*';
|
| '-' expr %prec '*';
|
||||||
|
|
||||||
oplogic: expr OpEquals expr;
|
oplogic: expr OpEquals expr
|
||||||
|
| expr '<' expr
|
||||||
|
| expr '>' expr;
|
||||||
|
|
||||||
opbool: expr OpAnd expr
|
opbool: expr OpAnd expr
|
||||||
| expr OpOr expr
|
| expr OpOr expr
|
||||||
|
|
Loading…
Reference in New Issue