#include <sstream>
#include <cmath>
+#include "Driver.hpp"
#include "Error.hpp"
#include "Execute.hpp"
#include "Parser.hpp"
#include "String.hpp"
-#include "Cycript.tab.hh"
-#include "Driver.hpp"
-
#include "ConvertUTF.h"
template <>
CYUTF8String CYPoolCode(CYPool &pool, std::istream &stream) {
CYLocalPool local;
- CYDriver driver(stream);
-
- cy::parser parser(driver);
- _assert(parser.parse() == 0);
+ CYDriver driver(local, stream);
+ _assert(!driver.Parse());
_assert(driver.errors_.empty());
CYOptions options;
CYContext context(options);
- driver.program_->Replace(context);
+ driver.script_->Replace(context);
std::stringbuf str;
CYOutput out(str, options);
- out << *driver.program_;
+ out << *driver.script_;
return $pool.strdup(str.str().c_str());
}