Expand description
Methods for PrimitiveCommands and for registering new ones
Structs§
- PRIMITIVES
- The global
PrimitiveInterner. - Primitive
Commands - A store for all primitive commands.
- Primitive
Identifier - A
Copyidentifier for a primitive command. Small and fast to compare. - Primitive
Interner - We always intern the names for primitive commands/macros, for efficiency; in particular for equality checks.
Uses
u16internally, i.e. allowing for up to 65536 primitives.
Functions§
- register_
assignment - Creates a new primitive assignment command.
- register_
box - Creates a new primitive command that yields a box and registers it with the engine.
- register_
conditional - Creates a new conditional primitive and registers it with the engine.
- register_
dim - Creates a new primitive command that yields (and optionally assigns) a dimension value and registers it with the engine.
- register_
expandable - Creates a new expandable primitive and registers it with the engine.
- register_
font - Creates a new primitive command that yields (and optionally assigns) a font value and registers it with the engine.
- register_
int - Creates a new primitive command that yields (and optionally assigns) an integer value and registers it with the engine.
- register_
muskip - Creates a new primitive command that yields (and optionally assigns) a muskip value and registers it with the engine.
- register_
primitive_ dim - Creates a new primitive named dimension and registers it with the engine.
- register_
primitive_ int - Creates a new primitive named integer value and registers it with the engine.
- register_
primitive_ muskip - Creates a new primitive named skip and registers it with the engine.
- register_
primitive_ skip - Creates a new primitive named skip and registers it with the engine.
- register_
primitive_ toks - Creates a new primitive named token register and registers it with the engine.
- register_
simple_ expandable - Creates a new simple expandable primitive (which does not produce new tokens) and registers it with the engine.
- register_
skip - Creates a new primitive command that yields (and optionally assigns) a skip value and registers it with the engine.
- register_
unexpandable - Creates a new unexpandable primitive and registers it with the engine.
- register_
whatsit - Creates a new “Whatsit” primitive and registers it with the engine.