@begin ObjectiveC
CYClassName *className_;
- CYField *field_;
+ CYClassField *classField_;
CYMessage *message_;
CYMessageParameter *messageParameter_;
CYProtocol *protocol_;
%type <expression_> BoxableExpression
%type <statement_> CategoryStatement
%type <expression_> ClassExpression
-%type <field_> ClassFieldListOpt
-%type <field_> ClassFields
+%type <classField_> ClassFieldListOpt
+%type <classField_> ClassFields
%type <statement_> ClassStatement
%type <expression_> ClassSuperOpt
%type <message_> ClassMessageDeclaration
;
ClassFieldListOpt
- : TypedIdentifier ";" ClassFieldListOpt { $$ = CYNew CYField($1, $3); }
+ : TypedIdentifier ";" ClassFieldListOpt { $$ = CYNew CYClassField($1, $3); }
| LexSetRegExp { $$ = NULL; }
;
virtual void Output(CYOutput &out, CYFlags flags) const;
};
-struct CYField :
- CYNext<CYField>
+struct CYClassField :
+ CYNext<CYClassField>
{
CYTypedIdentifier *typed_;
- CYField(CYTypedIdentifier *typed, CYField *next = NULL) :
- CYNext<CYField>(next),
+ CYClassField(CYTypedIdentifier *typed, CYClassField *next = NULL) :
+ CYNext<CYClassField>(next),
typed_(typed)
{
}
CYClassName *name_;
CYExpression *super_;
CYProtocol *protocols_;
- CYField *fields_;
+ CYClassField *fields_;
CYMessage *messages_;
- CYClass(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYField *fields, CYMessage *messages) :
+ CYClass(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYClassField *fields, CYMessage *messages) :
name_(name),
super_(super),
protocols_(protocols),
CYClass,
CYExpression
{
- CYClassExpression(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYField *fields, CYMessage *messages) :
+ CYClassExpression(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYClassField *fields, CYMessage *messages) :
CYClass(name, super, protocols, fields, messages)
{
}
CYClass,
CYStatement
{
- CYClassStatement(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYField *fields, CYMessage *messages) :
+ CYClassStatement(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYClassField *fields, CYMessage *messages) :
CYClass(name, super, protocols, fields, messages)
{
}