Пример #1
0
 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);
 }
Пример #2
0
 public EvaluationResult Evalutate(EvaluationContext context) {
     return new InterpreterVisitor(context).Evaluate();
 }
Пример #3
0
 public InterpreterVisitor(EvaluationContext context) {
     _context = context;
 }