public Interpreter(Expression expression) { scopeStack = new Stack<ScopeTreeNode>(); ScopeTreeRoot = new ScopeTreeNode(Permanency.Permanent); RootExpression = expression; Log = new List<LogEntry>(); }
public ScopeTreeNode(Permanency perm, ScopeTreeNode parent = null) { Children = new List<ScopeTreeNode>(); references = new Dictionary<string, Reference>(); Parent = parent; this.perm = perm; }
public void EnterScope(ScopeTreeNode node) { scopeStack.Push(node); }