public Interpreter(AbstractSyntaxTree ast) { this.ast = ast; rootEnv = new InterpreterEnvironment(); // Register built-in functions as symbols in the root environment DefineBuiltInFunctions(); }
public InterpreterEnvironment(InterpreterEnvironment parent) { HasParent = true; Parent = parent; Symbols = new Dictionary <string, IExpression>(); }
public InterpreterEnvironment() { HasParent = false; Parent = null; Symbols = new Dictionary <string, IExpression>(); }