]> git.saurik.com Git - cycript.git/blobdiff - Parser.cpp
Add String::toCYON, toString_s, and bridge NSString via String.prototype.
[cycript.git] / Parser.cpp
index 8a1390d7690f9929e41794281a90d9d8723bf2f3..49f2d10ad3cf851ae34eb3e911de610a695314b9 100644 (file)
@@ -1,4 +1,4 @@
-/* Cycript - Remove Execution Server and Disassembler
+/* Cycript - Inlining/Optimizing JavaScript Compiler
  * Copyright (C) 2009  Jay Freeman (saurik)
 */
 
@@ -44,14 +44,18 @@ CYRange DigitRange_    (0x3ff000000000000LLU, 0x000000000000000LLU); // 0-9
 CYRange WordStartRange_(0x000001000000000LLU, 0x7fffffe87fffffeLLU); // A-Za-z_$
 CYRange WordEndRange_  (0x3ff001000000000LLU, 0x7fffffe87fffffeLLU); // A-Za-z_$0-9
 
-CYDriver::CYDriver(const std::string &filename) :
+CYDriver::CYDriver(apr_pool_t *pool, const std::string &filename) :
+    pool_(pool),
     state_(CYClear),
     data_(NULL),
     size_(0),
     file_(NULL),
     strict_(false),
     filename_(filename),
-    program_(NULL)
+    program_(NULL),
+    auto_(false),
+    context_(NULL),
+    mode_(AutoNone)
 {
     ScannerInit();
 }