From d9620ec64df7d8131699c93cd72e9eb8d8a6b02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20M=C3=B6llmann?= Date: Mon, 15 May 2017 19:50:40 -0300 Subject: [PATCH] fix precedence error. --- parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.y b/parser.y index bf02dbb..706547a 100644 --- a/parser.y +++ b/parser.y @@ -49,8 +49,8 @@ %type prog decl_list decl func type var lit ident vec vec_init fheader params_list params params_rest fbody block cmd_list cmd attr expr read print_arg print_list print return args args_rest args_list ctrl %start prog -%left OP_EQ OP_LE OP_GE OP_NE '>' '<' %left OP_AND OP_OR '!' +%left OP_EQ OP_LE OP_GE OP_NE '>' '<' %left '+' '-' %left '*' '/'