Allow normal declarations within a class implementation.

I had always been under the assumption that such was illegal in
Objective-C, but after working on Forge, I now know otherwise.
This commit is contained in:
Bill Currie 2010-12-31 16:06:54 +09:00
parent dc5bafb8fb
commit 4c69a97ac7

View file

@ -223,7 +223,7 @@ storage_class_t current_storage = st_global;
defs
: /* empty */
| defs {if (current_class) PARSE_ERROR;} def
| defs def
| defs obj_def
| error END { current_class = 0; yyerrok; }
| error ';' { yyerrok; }