Beispiel #1
0
        public static void onBreakPoint(ProseRuntime runtime, PNode source, BreakPointObject.RuntimeData rtdata, string script)
        {
            breakPointDepth++;

            runtime.read(script, runtime.GlobalClient);
            runtime.read("read file \"Libraries/REPL/onbreak.prose\"", runtime.GlobalClient);
            ProseREPLLoop();

            breakPointDepth--;
        }
Beispiel #2
0
 public static void runRegressionTest()
 {
     initNewCleanRuntime();
     try {
         runtime.read("read file \"Libraries/REPL/regression.prose\"", runtime.GlobalClient);
         runtime.read("read file \"adventure.prose\"", runtime.GlobalClient);
     }
     catch (Exception e) {
         Console.WriteLine("Automated regression test failed: " + e.Message);
         Console.WriteLine("Press return to continue.");
         Console.ReadLine();
     }
 }
Beispiel #3
0
 public void run(ProseRuntime runtime)
 {
     runtime.read(script, 0, script.Count, runtime.GlobalClient);
 }