From cf9916d00d46ab2c067876644f7d38c269448644 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 12 Oct 2015 14:33:05 -0400 Subject: fix minor parsing issues --- minic/minic.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'minic') diff --git a/minic/minic.y b/minic/minic.y index 86846ee..d2e69a2 100644 --- a/minic/minic.y +++ b/minic/minic.y @@ -550,11 +550,11 @@ mkstmt(int t, void *p1, void *p2, void *p3) %token IF ELSE WHILE %right '=' +%left EQ NE +%left '<' '>' LE GE %left '+' '-' %left '*' '/' '%' %nonassoc '&' -%left EQ NE -%left '<' '>' LE GE %nonassoc '[' %type type @@ -565,7 +565,7 @@ mkstmt(int t, void *p1, void *p2, void *p3) prog: func prog | fdcl prog | ; -fdcl: type IDENT '(' ')' +fdcl: type IDENT '(' ')' ';' { varadd($2->u.v, 1, FUNC($1)); }; -- cgit 1.4.1