Crate texlang_stdlib
source ·Expand description
§The Texlang standard library
This module contains implementations of TeX primitives for Texlang.
Modules§
\letaliasing command- Dynamic allocation of variables and arrays
- The
\chardefprimitive. - Primitives for setting codes (
\catcode,\mathcode, etc.) - Control flow primitives (if, else, switch)
- User-defined macros (
\defand friends) - The
\endlinecharprimitive - Commands that control what to do when errors occur
- Commands that alter the expansion process
- Primitives for inputting source code from files and the terminal
- Operations on variables (add, multiply, divide)
- The
\mathchardefprimitive. - The
\global,\longand\outerprefix commands - Register variables (
\count,\countdef) - Support for running TeX REPLs
- Support for running TeX scripts.
- Primitive that pauses execution for a duration of time
- The Texcraft primitive, which returns the word Texcraft as eight separate letter tokens
- The
\theprimitive - Time commands (
\year,\month, etc.) - TeX macro debugging
Structs§
- A TeX snippet that exercises some error case in the standard library.
- A state struct that is compatible with every primitive in the Texlang standard library.