|
|
@ -41,7 +41,7 @@ public: |
|
|
|
JSConsole(): m_engine(Engine()), m_printer(Printer(m_engine)) {} |
|
|
|
~JSConsole() {} |
|
|
|
|
|
|
|
bool readExpression() const |
|
|
|
void readExpression() const |
|
|
|
{ |
|
|
|
std::string cmd = ""; |
|
|
|
g_logPost = [](std::string const& a, char const*) |
|
|
@ -83,9 +83,6 @@ public: |
|
|
|
} |
|
|
|
} while (openBrackets > 0); |
|
|
|
|
|
|
|
if (cmd == "quit") |
|
|
|
return false; |
|
|
|
|
|
|
|
if (!isEmpty) |
|
|
|
{ |
|
|
|
#if ETH_READLINE |
|
|
@ -95,7 +92,6 @@ public: |
|
|
|
std::string result = m_printer.prettyPrint(value).cstr(); |
|
|
|
std::cout << result << std::endl; |
|
|
|
} |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
void eval(std::string const& _expression) { m_engine.eval(_expression.c_str()); } |
|
|
|