summary refs log tree commit diff
path: root/minic/minic.y
diff options
context:
space:
mode:
Diffstat (limited to 'minic/minic.y')
-rw-r--r--minic/minic.y6
1 files changed, 3 insertions, 3 deletions
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 <u> 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));
 };