42#ifndef COMPILER_OPERATOR_H
43#define COMPILER_OPERATOR_H
Token model and parser-facing metadata for compiler front-ends.
Main namespace for Aleph-w library functions.
@ Invalid
Uninitialized register/slot or explicit invalid placeholder.
const char * compiler_operator_name(const Compiler_Operator_Kind kind) noexcept
Returns a stable debug name for one operator kind.
Compiler_Token_Kind compiler_operator_to_token_kind(const Compiler_Operator_Kind kind) noexcept
Maps one reusable operator kind back into the MVP token kind.
Compiler_Token_Kind
Token kinds supported by the compiler MVP.
@ Invalid
Sentinel for lexer errors or uninitialized tokens.
Compiler_Operator_Kind compiler_operator_compound_base(const Compiler_Operator_Kind kind) noexcept
Returns the arithmetic operator underlying one compound assignment.
bool compiler_operator_is_compound_assignment(const Compiler_Operator_Kind kind) noexcept
Returns whether kind is one compound-assignment operator.
Compiler_Operator_Kind compiler_operator_from_token_kind(const Compiler_Token_Kind kind) noexcept
Maps one reference-frontend token kind into a reusable operator kind.
Compiler_Operator_Kind
Stable operator kinds shared by reusable compiler layers.