pub fn read_braced<R>(
tokens: Tokens,
read: impl FnOnce() -> Result<R>,
) -> Result<(R, Vec<Token>)>Expand description
Read a value from a braced argument’s tokens, in a mouth of their own,
and return it with the argument’s TAIL: whatever read left unread — what
an expanding scan looked ahead at and put back, and the rest of the
argument. Perl readingFromMouth (Gullet.pm:108-146) drops the tail; TeX
has never seen braces here and leaves it in the input, so every caller hands
it back (ArgumentTails, or read_braced_value’s callers).