void SC_TerminalClient::interpretCmdLine(PyrSymbol* method, SC_StringBuffer& cmdLine)
{
	setCmdLine(cmdLine);
	cmdLine.reset();
	runLibrary(method);
	flush();
}
Esempio n. 2
0
int main()
{

	pyr_init_mem_pools(2*1024*1024, 256*1024);
	init_OSC(57120);
	schedInit();

	compileLibrary();
	runLibrary(s_run); fflush(postfile);

	return 0;
}
Esempio n. 3
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);
}
Esempio n. 4
0
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();
}
Esempio n. 6
0
void SC_LanguageClient::stopMain() { runLibrary(s_stop); }
Esempio n. 7
0
void SC_LanguageClient::runMain() { runLibrary(s_run); }
Esempio n. 8
0
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);
}