Crate texlang_stdlib

Source
Expand description

Texlang standard library of primitives.

This module contains implementations of TeX primitives for Texcraft.

Modules§

alias
\let aliasing command
alloc
Dynamic allocation of variables and arrays
catcode
The \catcode primitive
conditional
Control flow primitives (if, else, switch)
def
User-defined macros (\def and 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, \long and \outer prefix 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 \the primitive
time
Time commands (\year, \month, etc.)
tracingmacros
TeX macro debugging

Macros§

test_suite
Macro to generate a suite of unit tests

Structs§

ErrorCase
StdLibState
A state struct that is compatible with every primitive in the Texlang standard library.