Fixed error in Bison code

This commit is contained in:
SLAwww 2016-03-13 18:56:18 +02:00
parent b2745c617f
commit 6e9fbef44a

View File

@ -1073,7 +1073,7 @@ statements
;
statement
: expression ';' {$$=$1+$2;}
| k_switch '(' expression ')' '{' statements '}' {$$=$1+$2+$3+$4+$5+$6+$7}
| k_switch '(' expression ')' '{' statements '}' {$$=$1+$2+$3+$4+$5+$6+$7;}
| k_case case_constant_expression ':' {$$=$1+" "+$2+$3+" ";}
| '{' statements '}' {$$=$1+$2+$3;}
| expression '{' statements '}' {$$=$1+$2+$3+$4;}