]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Syntax.hpp
Add an initial (inefficient) version of ?: syntax.
[cycript.git] / ObjectiveC / Syntax.hpp
index 618a25e87659e9bf7e574eb228449e9b2ac99b13..8fa10ee6687f0a3b61ae271fc6dbc8fb650c48a0 100644 (file)
@@ -169,9 +169,32 @@ struct CYProtocol :
     void Output(CYOutput &out) const;
 };
 
+struct CYModule :
+    CYNext<CYModule>,
+    CYThing
+{
+    CYWord *part_;
+
+    CYModule(CYWord *part, CYModule *next = NULL) :
+        CYNext<CYModule>(next),
+        part_(part)
+    {
+    }
+
+    CYString *Replace(CYContext &context, const char *separator) const;
+    void Output(CYOutput &out) const;
+};
+
 struct CYImport :
     CYStatement
 {
+    CYModule *module_;
+
+    CYImport(CYModule *module) :
+        module_(module)
+    {
+    }
+
     virtual CYStatement *Replace(CYContext &context);
     virtual void Output(CYOutput &out, CYFlags flags) const;
 };