158a159
> 'state_declaration' : 'STATE_DECL',
331a333,338
> def p_decl__state_decl(self, p):
> "decl : STATE_DECL '(' type pairs ')' '{' type_states '}'"
> p[4]["enumeration"] = "yes"
> p[4]["state_decl"] = "yes"
> p[0] = ast.StateDeclAST(self, p[3], p[4], p[7])
>
389a397,409
> # States
> def p_type_states__list(self, p):
> "type_states : type_state type_states"
> p[0] = [ p[1] ] + p[2]
>
> def p_type_states__empty(self, p):
> "type_states : empty"
> p[0] = []
>
> def p_type_state(self, p):
> "type_state : ident ',' enumeration pairs SEMI"
> p[0] = ast.TypeFieldStateAST(self, p[1], p[3], p[4])
>