X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/a7d8b4130acfb550e437d8cf1f6d3d81cb0cf6ee..20052ff75c224699725da0f8e096053009c62741:/Library.cpp?ds=sidebyside diff --git a/Library.cpp b/Library.cpp index 9ed238d..f5eb1c3 100644 --- a/Library.cpp +++ b/Library.cpp @@ -19,14 +19,8 @@ **/ /* }}} */ -#include - #include "cycript.hpp" -#include "Pooling.hpp" - -#include - #include #include #include @@ -34,15 +28,17 @@ #include #include -#include "Error.hpp" -#include "Execute.hpp" -#include "Parser.hpp" -#include "String.hpp" +#include -#include "Cycript.tab.hh" -#include "Driver.hpp" +#include #include "ConvertUTF.h" +#include "Driver.hpp" +#include "Error.hpp" +#include "Execute.hpp" +#include "Pooling.hpp" +#include "String.hpp" +#include "Syntax.hpp" template <> ::pthread_key_t CYLocal::key_ = Key_(); @@ -220,9 +216,7 @@ double CYCastDouble(const char *value) { CYUTF8String CYPoolCode(CYPool &pool, std::istream &stream) { CYLocalPool local; CYDriver driver(local, stream); - - cy::parser parser(driver); - _assert(parser.parse() == 0); + _assert(!driver.Parse()); _assert(driver.errors_.empty()); CYOptions options;