public override string RunSample(ParseTree parsedSample) { var interpreter = new Irony.Interpreter.ScriptInterpreter(this); interpreter.Globals["pi"] = Math.PI; interpreter.Evaluate(parsedSample); return(interpreter.GetOutput()); }
public override string RunSample(ParseTree parsedSample) { var interpreter = new Irony.Interpreter.ScriptInterpreter(this); interpreter.Globals["pi"] = Math.PI; interpreter.Evaluate(parsedSample); return interpreter.GetOutput(); }