Scope

class Scope[I, V, S]

Handles the scope stack for tracking identifier to variable relation.

Type parameters:
I

Identifier type.

S

Scope type.

V

Variable type.

class Object
trait Matchable
class Any

Value members

Concrete methods

def addToScope(identifier: I, variable: V): S
def isEmpty: Boolean
def lookupVariable(identifier: I): Option[V]
def popScope(): Option[S]
def pushNewScope(scopeNode: S): Unit

Concrete fields

protected var stack: List[ScopeElement[I, V, S]]