|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Token model and parser-facing metadata for compiler front-ends. More...
Go to the source code of this file.
Classes | |
| struct | Aleph::Compiler_Token |
| Lexical token representation with its value and location. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::Compiler_Token_Detail |
Functions | |
| const char * | Aleph::compiler_token_kind_name (Compiler_Token_Kind kind) |
| Returns a human-readable name for a token kind. | |
| Compiler_Token_Kind | Aleph::classify_compiler_keyword (std::string_view lexeme) noexcept |
| Classifies a lexeme as a keyword or Identifier. | |
| bool | Aleph::compiler_token_is_keyword (Compiler_Token_Kind kind) noexcept |
| Predicate: Is the kind a reserved keyword? | |
| bool | Aleph::compiler_token_is_literal (Compiler_Token_Kind kind) noexcept |
| Predicate: Is the kind a literal (number, string, bool, etc.)? | |
| bool | Aleph::compiler_token_is_comment (Compiler_Token_Kind kind) noexcept |
| Predicate: Is the kind a comment? | |
| bool | Aleph::compiler_token_is_operator (Compiler_Token_Kind kind) noexcept |
| Predicate: Is the kind an operator (arithmetic, logical, etc.)? | |
| int | Aleph::compiler_binary_precedence (Compiler_Token_Kind kind) noexcept |
| Returns binary precedence for an operator. | |
| Compiler_Associativity | Aleph::compiler_binary_associativity (Compiler_Token_Kind kind) noexcept |
| Returns binary associativity for an operator. | |
| std::string | Aleph::Compiler_Token_Detail::escape_token_lexeme (std::string_view text) |
Token model and parser-facing metadata for compiler front-ends.
This header provides a token kind enumeration, a token value object carrying raw lexeme and source span, keyword classification, and basic binary operator precedence metadata suitable for future Pratt or precedence-climbing parsers.
Definition in file Compiler_Token.H.