Module qilletni.api

Interface Scope


public interface Scope
Represents a scope in the Qilletni type system. A scope is a mapping of names to symbols and functions, allowing the resolution and definition of variables and functions within different levels of visibility, such as global, local, or within specific entities. This interface provides methods for looking up symbols and functions, defining new variables or functions, and retrieving metadata about the scope.

Scopes have parents, and depending on the condition, will look up to their parent to see if a symbol exists.