public void AddLiteral(int line, int pos, string value) { var instruction = new Interpreter.InterpreterInstructionValue(line, pos, value, new Interpreter.Evaluator.LiteralEvaluator()); AddInstruction(instruction); DebugInstruction("Literal", instruction); }
public void AddExpression(int line, int pos, string value) { Evaluator.IEvaluator evalObject = ExpressionBuilder.BuildExpressionEvaluator(value); var instruction = new Interpreter.InterpreterInstructionValue(line, pos, value, evalObject); AddInstruction(instruction); DebugInstruction("Expression", instruction); }