X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/9a39f7051ad983d4377917e66222727dcbe6c099..654bf401ac7c3063b503a56e4726317aeab9f6ee:/ObjectiveC/Syntax.hpp diff --git a/ObjectiveC/Syntax.hpp b/ObjectiveC/Syntax.hpp index 618a25e..4c15344 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 { @@ -169,9 +185,32 @@ struct CYProtocol : void Output(CYOutput &out) const; }; +struct CYModule : + CYNext, + CYThing +{ + CYWord *part_; + + CYModule(CYWord *part, CYModule *next = NULL) : + CYNext(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; };