commit a969caba020ee439091cce26987d3fc2a39f8963
parent ab063078e9647bdd654d7afa1c833d1dba2bd815
Author: Tomas Hlavaty <tom@logand.com>
Date: Tue, 6 Dec 2011 22:57:49 +0100
fix defstruct parser
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parse.y b/parse.y
@@ -56,7 +56,7 @@ enum_members: enum_member {$$ = list1($1);}
| enum_member COMMA enum_members {$$ = cons($1, $3);};
enum_member: identifier | identifier EQ exp {$$ = list2($1, $3);};
defstruct: published STRUCT identifier single_inheritance
- LCURLY struct_members RCURLY SEMICOLON {cons5($2, $3, $1, $4, $6);};
+ LCURLY struct_members RCURLY SEMICOLON {$$ = cons5($2, $3, $1, $4, $6);};
single_inheritance: nil | COLON name {$$ = $2};
struct_members: struct_member | struct_member struct_members {$$ = cons($1, $2);};
struct_member: type identifier SEMICOLON {$$ = list2($2, $1);};