void SC_TerminalClient::interpretCmdLine(PyrSymbol* method, SC_StringBuffer& cmdLine) { setCmdLine(cmdLine); cmdLine.reset(); runLibrary(method); flush(); }
int main() { pyr_init_mem_pools(2*1024*1024, 256*1024); init_OSC(57120); schedInit(); compileLibrary(); runLibrary(s_run); fflush(postfile); return 0; }
void SC_LanguageClient::executeFile(const char* fileName) { std::string escaped_file_name(fileName); int i = 0; while (i < escaped_file_name.size()) { if (escaped_file_name[i] == '\\') escaped_file_name.insert(++i, 1, '\\'); ++i; } setCmdLinef("thisProcess.interpreter.executeFile(\"%s\")", escaped_file_name.c_str()); runLibrary(s_interpretCmdLine); }
void QcApplication::interpret( const QString &str, bool print ) { QtCollider::lockLang(); if( compiledOK ) { VMGlobals *g = gMainVMGlobals; PyrString *strObj = newPyrString( g->gc, str.toStdString().c_str(), 0, true ); SetObject(&slotRawInterpreter(&g->process->interpreter)->cmdLine, strObj); g->gc->GCWrite(slotRawObject(&g->process->interpreter), strObj); runLibrary( print ? SC_SYM(interpretPrintCmdLine) : SC_SYM(interpretCmdLine) ); } QtCollider::unlockLang(); }
void SC_TerminalClient::interpretCmdLine(const char *cmdLine, size_t size, bool silent) { setCmdLine(cmdLine, size); runLibrary(resolveMethodSymbol(silent)); flush(); }
void SC_LanguageClient::stopMain() { runLibrary(s_stop); }
void SC_LanguageClient::runMain() { runLibrary(s_run); }
void SC_LanguageClient::interpretPrintCmdLine() { runLibrary(s_interpretPrintCmdLine); }
void SC_TerminalClient::interpretCmdLine(PyrSymbol* method, const char *cmdLine, size_t size) { setCmdLine(cmdLine, size); runLibrary(method); flush(); }
void SC_LanguageClient::executeFile(const char* fileName) { setCmdLinef("thisProcess.interpreter.executeFile(\"%s\")", fileName); runLibrary(s_interpretCmdLine); }