lib/cast/c.y in cast-0.3.0 vs lib/cast/c.y in cast-0.3.1
- old
+ new
@@ -171,9 +171,10 @@
| struct_declaration_list struct_declaration {val[0] << val[1]; result = val[0]}
# Returns Declaration
struct_declaration
: specifier_qualifier_list struct_declarator_list SEMICOLON {result = make_declaration(val[0][0], val[0][1], val[1])}
+ | specifier_qualifier_list SEMICOLON {result = make_declaration(val[0][0], val[0][1], NodeArray[])}
# Returns {Pos, [Symbol]}
specifier_qualifier_list
: type_specifier specifier_qualifier_list {val[1][1] << val[0][1]; result = val[1]}
| type_specifier {result = [val[0][0], [val[0][1]]]}