diff --git a/prog.gem b/prog.gem new file mode 100644 index 0000000..d4504b9 --- /dev/null +++ b/prog.gem @@ -0,0 +1 @@ +foo(1,2,bar) \ No newline at end of file diff --git a/src/yacc/parser.y b/src/yacc/parser.y index 7e3ef61..4941825 100644 --- a/src/yacc/parser.y +++ b/src/yacc/parser.y @@ -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