Expand description
The Token and its Catcode
Structs§
- Token
- The core immutable syntactic primitive resulting from TeX’s read-in and expansion process We allow the fields to be public, so that we can use builder macros such as
Enums§
- Catcode
- A Token category code, as in TeX
Constants§
- NOEXPAND_
PREFIX - Name of the bare no-op control sequence
\noexpandcollapses to, and the prefix of every member of the no-expand family. SeeToken::is_noexpand_family. - NOEXPAND_
SEP - Separator byte between the
\special_relaxprefix and the shadowed token’s text in a family token’s name.\x01is never valid in a CS name or active char, so\special_relax\x01\foois unambiguous and cannot collide with a real CS such as a (hypothetical)\special_relaxfoo.
Statics§
- TOKEN_
ALIGN - constant for an ALIGN “&” token
- TOKEN_
BEGIN - constant for a BEGIN “{” token
- TOKEN_
CR - constant for a CR “\n” token
- TOKEN_
END - constant for an END “}” token
- TOKEN_
ENDCSNAME - constant for T_CS(“\endcsname”)
- TOKEN_
EXPANDAFTER - constant for T_CS(“\expandafter”)
- TOKEN_
MATH - constant for a MATH “$” token
- TOKEN_
PARAM - constant for a PARAM “#” token
- TOKEN_
RELAX - constant for T_CS(“\relax”)
- TOKEN_
SPACE - constant for a SPACE “ “ token
- TOKEN_
SUB - constant for a SUB “_” token
- TOKEN_
SUPER - constant for a SUPER “^” token
Functions§
- noexpand_
family - Build the no-expand family token shadowing
shadowed— the per-token, dump-safe representation of\noexpand <shadowed>(faithful to TeX’sno_expand_flag: the shadowed identity is preserved in the name; the family resolves to\relaxmeaning).shadowedis an expandable/undefined CS or active token (the only things\noexpandwraps; seeis_dont_expandable).