aboutsummaryrefslogtreecommitdiff
path: root/minic
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2015-10-12 14:33:05 -0400
committerQuentin Carbonneaux <[email protected]>2015-10-12 14:33:05 -0400
commitcf9916d00d46ab2c067876644f7d38c269448644 (patch)
treed9b4c4c8351fcdcba259cf0432c4ee321b4066ec /minic
parentfbee480f2ed31616583cef5735df07e694ff9c5c (diff)
fix minor parsing issues
Diffstat (limited to 'minic')
-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));
};