Skip to main content

Module token

Module token 

Source

Structs§

ComponentShortformEntry
Token
TokenizeError

Enums§

TokenKind
Unit
Unit suffix on a numeric literal in MMS source (e.g. 50%, 20gu, 30deg). Bare numbers without a suffix tokenize as Number(f64) and do not carry a unit. When a unit suffix is present, the lexer emits Dimension(f64, Unit) instead.

Constants§

COMPONENT_SHORTFORMS
Mapping of short component identifiers (used in .mms) to the canonical component type name that the host registry resolves.

Functions§

expand_component_shortform
shortform_for_component