//This method allows custom implementation of running a sample in Grammar Explorer // By default it evaluates a parse tree using default interpreter public virtual string RunSample(ParseTree parsedSample) { var interpreter = new ScriptInterpreter(this); interpreter.Evaluate(parsedSample); return(interpreter.GetOutput()); }