summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-12 14:33:05 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-12 14:33:05 -0400
commitcf9916d00d46ab2c067876644f7d38c269448644 (patch)
treed9b4c4c8351fcdcba259cf0432c4ee321b4066ec
parentfbee480f2ed31616583cef5735df07e694ff9c5c (diff)
downloadroux-cf9916d00d46ab2c067876644f7d38c269448644.tar.gz
fix minor parsing issues
-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));
 };