]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Syntax.hpp
Add actual syntax that desugars to new Instance().
[cycript.git] / ObjectiveC / Syntax.hpp
index 8fa10ee6687f0a3b61ae271fc6dbc8fb650c48a0..4c15344da5a4265c5889a51f370957d1ac1d5e0f 100644 (file)
 
 #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
 {