qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit cf9916d00d46ab2c067876644f7d38c269448644
parent fbee480f2ed31616583cef5735df07e694ff9c5c
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Mon, 12 Oct 2015 14:33:05 -0400

fix minor parsing issues

Diffstat:
Mminic/minic.y | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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)); };