#include "Display.hpp"
#include "Driver.hpp"
#include "Highlight.hpp"
-#include "Replace.hpp"
+#include "Parser.hpp"
static volatile enum {
Working,
goto read;
}
- if (driver.program_ == NULL)
+ if (driver.script_ == NULL)
goto restart;
std::stringbuf str;
CYOutput out(str, options);
Setup(out, driver, options, lower);
- out << *driver.program_;
+ out << *driver.script_;
code = str.str();
}
if (failed || !driver.errors_.empty()) {
for (CYDriver::Errors::const_iterator i(driver.errors_.begin()); i != driver.errors_.end(); ++i)
std::cerr << i->location_.begin << ": " << i->message_ << std::endl;
- } else if (driver.program_ != NULL) {
+ } else if (driver.script_ != NULL) {
std::stringbuf str;
CYOutput out(str, options);
Setup(out, driver, options, true);
- out << *driver.program_;
+ out << *driver.script_;
std::string code(str.str());
if (compile)
std::cout << code;