added less and greater operator

This commit is contained in:
Sven Vogel 2024-04-30 11:51:59 +02:00
parent 7547331705
commit 970b45ac3c
2 changed files with 5 additions and 2 deletions

1
prog.gem Normal file
View File

@ -0,0 +1 @@
foo(1,2,bar)

View File

@ -58,7 +58,7 @@
/* Operator associativity */
%right '='
%left '+' '-' '*' '/'
%left OpEquals OpNot
%left OpEquals OpNot '<' '>'
%left OpAnd OpOr OpXor
%left OpBitand OpBitor OpBitxor OpBitnot
@ -108,7 +108,9 @@ oparith: expr '+' expr
| expr '/' expr
| '-' expr %prec '*';
oplogic: expr OpEquals expr;
oplogic: expr OpEquals expr
| expr '<' expr
| expr '>' expr;
opbool: expr OpAnd expr
| expr OpOr expr