Skip to main content

Module primitives

Module primitives 

Source
Expand description

Methods for PrimitiveCommands and for registering new ones

Structs§

PRIMITIVES
The global PrimitiveInterner.
PrimitiveCommands
A store for all primitive commands.
PrimitiveIdentifier
A Copy identifier for a primitive command. Small and fast to compare.
PrimitiveInterner
We always intern the names for primitive commands/macros, for efficiency; in particular for equality checks. Uses u16 internally, 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.