X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/417dcc1222fa08913a7b671c988878a3568095c2..79137a7a0b6b8116d5271ae779a8ee009308bf0a:/ObjectiveC/Syntax.hpp diff --git a/ObjectiveC/Syntax.hpp b/ObjectiveC/Syntax.hpp index 8fa10ee..e04f71d 100644 --- a/ObjectiveC/Syntax.hpp +++ b/ObjectiveC/Syntax.hpp @@ -24,6 +24,22 @@ #include "Parser.hpp" +struct CYInstanceLiteral : + CYExpression +{ + CYNumber *number_; + + CYInstanceLiteral(CYNumber *number) : + number_(number) + { + } + + CYPrecedence(1) + + virtual CYExpression *Replace(CYContext &context); + virtual void Output(CYOutput &out, CYFlags flags) const; +}; + struct CYObjCBlock : CYExpression { @@ -97,13 +113,11 @@ struct CYSelector : struct CYField : CYNext { - CYExpression *type_; - CYIdentifier *name_; + CYTypedIdentifier *typed_; - CYField(CYExpression *type, CYIdentifier *name, CYField *next = NULL) : + CYField(CYTypedIdentifier *typed, CYField *next = NULL) : CYNext(next), - type_(type), - name_(name) + typed_(typed) { }