private void AddInstruction(Interpreter.InterpreterInstructionBase instruction) { if (Instructions.Count() > 0) { var lastNonLinked = Instructions.LastOrDefault(i => i.Next == null); if (lastNonLinked != null) { lastNonLinked.Next = instruction; } } Instructions.Add(instruction); }
private void DebugInstruction(string type, Interpreter.InterpreterInstructionBase instruction) { logger.Trace("{0} {1} - {2}: '{3}'", type, instruction.Line, instruction.Position, instruction.Instruction); }