Esempio n. 1
0
 private BytecodeParser(byte[] bytecode, IEnumerable<string> symbolTable, runtime.OutputPort printer)
 {
     this.bytecode = bytecode;
     this.symbolTable = symbolTable.Select(runtime.Symbol.fromString).ToArray();
     this.printer = printer;
     this.offset = 0;
 }
Esempio n. 2
0
 static void Main()
 {
     runtime process = new runtime();
     if (process.IsProcessOpen("TimeSnap") == false)
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new TimeSnap());
     }
     else
     {
         MessageBox.Show("Process is already running");
     }
 }
Esempio n. 3
0
        static void Main()
        {
            runtime process = new runtime();

            if (process.IsProcessOpen("TimeSnap") == false)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new TimeSnap());
            }
            else
            {
                MessageBox.Show("Process is already running");
            }
        }
 protected override void Process(runtime.contract.IMessage input, Action<runtime.contract.IMessage> continueWith, Action<runtime.contract.FlowRuntimeException> unhandledException)
 {
     this.messages.Add(input);
 }
Esempio n. 5
0
 internal static runtime.Statement[] Parse(byte[] bytecode, IEnumerable<string> symbolTable, runtime.OutputPort printer)
 {
     return new BytecodeParser(bytecode, symbolTable, printer).ParseStatements();
 }