Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
tpl_scope.H File Reference

Lexical scope management using frame stacks. More...

#include <concepts>
#include <cstddef>
#include <utility>
#include <ah-errors.H>
#include <tpl_dynArray.H>
Include dependency graph for tpl_scope.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Aleph::Scope< Key, Value >
 Lexical scope stack for Key to Value associations. More...
 
struct  Aleph::Scope< Key, Value >::Binding
 Individual entry in a lexical frame. More...
 
struct  Aleph::Scope< Key, Value >::Frame
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Detailed Description

Lexical scope management using frame stacks.

This header provides the Scope class, a fundamental structure for compilers and interpreters that need to manage name visibility (bindings) following lexical shadowing rules.

The mission of this module is to allow the user to define visibility "levels". When entering a new scope (e.g., a function or a block {}), a frame is pushed. Insertions occur in the current frame, and lookups traverse the stack from the inside out.

Definition in file tpl_scope.H.