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; }
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); }
internal static runtime.Statement[] Parse(byte[] bytecode, IEnumerable<string> symbolTable, runtime.OutputPort printer) { return new BytecodeParser(bytecode, symbolTable, printer).ParseStatements(); }