private EvaluationResult EvaluateExpression(AbstractSyntaxTree tree, IEnumerable<IGlobalMethodProvider> providers) {
     var context = new EvaluationContext {
         Tree = tree,
         MethodInvocationCallback = (m, args) => Evaluate(providers, m, args)
     };
     return new Interpreter().Evalutate(context);
 }
 public EvaluationResult Evalutate(EvaluationContext context) {
     return new InterpreterVisitor(context).Evaluate();
 }
示例#3
0
 public InterpreterVisitor(EvaluationContext context) {
     _context = context;
 }