Crate texlang_stdlib

source ·
Expand description

Texlang standard library of primitives.

This module contains implementations of TeX primitives for Texcraft.

Modules

  • \let aliasing command
  • Dynamic allocation of variables and arrays
  • The \catcode primitive
  • Control flow primitives (if, else, switch)
  • User-defined macros (\def and friends)
  • Commands that alter the expansion process
  • Primitives for input and output of files
  • Operations on variables (add, multiply, divide)
  • 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
  • Utilities for writing unit tests
  • The Texcraft primitive, which returns the word Texcraft as eight separate letter tokens
  • The \the primitive
  • Time commands (\year, \month, etc.)
  • TeX macro debugging

Macros

Structs

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