Resolve a raw user-code token against the lexicon: direct lexicon-key lookup
(trimmed raw as the key, never lossy), then the category's resolver —
lexicon-aware parsing such as option's no_-stripping and -J/+J
flags, or redirections decomposed into group-op + tail; most categories
add nothing to the direct step.
Direct precedence is load-bearing for template-key categories, where the
literal key and a live token resolved through templates must not collide:
job_spec%number vs %5 → %number, history_expn!n vs !42,
special_functionTRAPZERR vs TRAPINT → TRAPNAL. Non-template
categories miss the direct step and resolve (AUTO_CD → autocd).
The sole public brand-boundary crossing for untrusted raw strings; the
other route to an identity is lexicon iteration.
Resolve a raw user-code token against the lexicon: direct lexicon-key lookup (trimmed
rawas the key, never lossy), then the category's resolver — lexicon-aware parsing such asoption'sno_-stripping and-J/+Jflags, or redirections decomposed into group-op + tail; most categories add nothing to the direct step.Direct precedence is load-bearing for template-key categories, where the literal key and a live token resolved through templates must not collide:
job_spec%numbervs%5 → %number,history_expn!nvs!42,special_functionTRAPZERRvsTRAPINT → TRAPNAL. Non-template categories miss the direct step and resolve (AUTO_CD→autocd).The sole public brand-boundary crossing for untrusted raw strings; the other route to an identity is lexicon iteration.