public void AddEndFile(int line, int pos, string value) { var instruction = new Interpreter.InterpreterInstructionNoOp(line, pos, value, new Interpreter.Evaluator.EvaluateEndFile()); if (LastFileCreateInstruction != null) { LastFileCreateInstruction.Alternative = instruction; LastFileCreateInstruction = null; } AddInstruction(instruction); DebugInstruction("EndFile", instruction); }
public void AddFileCreate(int line, int pos, string value) { var instruction = new Interpreter.InterpreterInstructionBranch(line, pos, value, new Interpreter.Evaluator.EvaluateFileCreate()); if (LastFileCreateInstruction != null) { logger.Error("Line {0} - cannnot have a FileCreate before ending a another FileCreate instruction.", line); } LastFileCreateInstruction = instruction; AddInstruction(instruction); DebugInstruction("FileCreate", instruction); }