pub fn read_braced_value(
tokens: Tokens,
kind: RegisterType,
) -> Result<(RegisterValue, Vec<Token>)>Expand description
Read a kind value from a braced argument’s tokens the way LaTeX’s
assignments scan it — \setlength#1#2{#1 #2\relax}, \addtolength,
\setcounter, \addtocounter (latex.ltx:10253-10254, 10115-10122): by
the register’s own type, a length through calc when it is loaded (see
gullet::BracedLengthFn). Returns the value and the argument’s tail; the
caller assigns, then puts the tail back (gullet::unread_vec) — exactly
where TeX leaves it, after the assignment.