Expand description
Texlang standard library of primitives.
This module contains implementations of TeX primitives for Texcraft.
Modules§
- alias
\letaliasing command- alloc
- Dynamic allocation of variables and arrays
- catcode
- The
\catcodeprimitive - conditional
- Control flow primitives (if, else, switch)
- def
- User-defined macros (
\defand friends) - expansion
- Commands that alter the expansion process
- io
- Primitives for input and output of files
- job
- math
- Operations on variables (add, multiply, divide)
- 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
- testing
- Utilities for writing unit tests
- 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
Macros§
- test_
suite - Macro to generate a suite of unit tests
Structs§
- Error
Case - StdLib
State - A state struct that is compatible with every primitive in the Texlang standard library.