Accept constant definitions in structs.

- We already need to handle them for enums, so there's really nothing to
  be gained by not accepting constant definitions directly.
This commit is contained in:
Randy Heit 2016-03-11 20:41:45 -06:00
parent 8c027aef8b
commit 4a295dfa3d

View file

@ -262,6 +262,7 @@ struct_body(X) ::= struct_member(A) struct_body(B). { X = A; A->AppendSibling(B
struct_member(X) ::= declarator_no_fun(A). { X = A; }
struct_member(X) ::= enum_def(A). { X = A; }
struct_member(X) ::= const_def(A). { X = A; }
/*----- Constant Definition ------*/
/* Like UnrealScript, a constant's type is implied by its value's type. */