Expand description
The evaluation context for Tokel macro expansions.
A Session represents a single, temporary run of the Tokel engine. It holds the
Registry of available transformers and maintains their internal state throughout
the bottom-up evaluation of an abstract syntax tree.
Because transformers can be stateful (e.g., counters or accumulators), creating a
fresh Session for each macro invocation ensures that state is cleanly isolated
and automatically dropped when the expansion is complete.
Structsยง
- Session
- The execution context for a Tokel expansion.