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