Crate texlang_stdlib
source ·Expand description
The Texlang standard library
This module contains implementations of TeX primitives for Texlang.
Modules
\let
aliasing command- Dynamic allocation of variables and arrays
- The
\chardef
primitive. - Primitives for setting codes (
\catcode
,\mathcode
, etc.) - Control flow primitives (if, else, switch)
- User-defined macros (
\def
and friends) - The
\endlinechar
primitive - 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
\mathchardef
primitive. - The
\global
,\long
and\outer
prefix 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
\the
primitive - 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.