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