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

Reusable lexical bindings and symbol records for frontends. More...

#include <sstream>
#include <string>
#include <ah-source.H>
#include <tpl_scope.H>
Include dependency graph for Compiler_Symbol_Bindings.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Aleph::Compiler_Symbol
 One reusable symbol record tracked by lexical bindings. More...
 
struct  Aleph::Compiler_Symbol_Declare_Result
 Structured result returned after one declaration attempt. More...
 
class  Aleph::Compiler_Symbol_Bindings
 Reusable lexical symbol table with stable ids and scope tracking. More...
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Typedefs

using Aleph::Compiler_Symbol_Id = size_t
 

Enumerations

enum class  Aleph::Compiler_Symbol_Kind {
  Aleph::Function , Aleph::Parameter , Aleph::Local , Aleph::Global ,
  Aleph::Type
}
 Generic symbol kinds reusable across multiple frontends. More...
 
enum class  Aleph::Compiler_Symbol_Declare_Status { Aleph::Inserted , Aleph::Duplicate_Local , Aleph::Inserted_Shadowing }
 Result status for one declaration attempt. More...
 

Functions

const char * Aleph::compiler_symbol_kind_name (const Compiler_Symbol_Kind kind) noexcept
 Returns a stable debug name for a symbol kind.
 

Detailed Description

Reusable lexical bindings and symbol records for frontends.

This header provides a small, language-agnostic layer for lexical declaration tracking on top of tpl_scope.H. It is intended for frontends that need stable symbol ids, shadowing-aware insertions, and deterministic dumps without adopting the MVP AST or semantic analyzer.

Definition in file Compiler_Symbol_Bindings.H.