pub fn at_end_of_all_input() -> boolExpand description
Return a (balanced) sequence tokens until a match against one of the Tokens in @delims.
Note that Braces on input hides the contents from matching,
so this assumes there wont be braces in $delim!
But, see readUntilBrace for that case.
Reads until the delimiter tokens match. Returns None when input RAN OUT
before the delimiter appeared (everything consumed is unread first) —
mirroring Perl Gullet::readUntil’s undef (Gullet.pm L683-685), so an
Until: parameter can raise the Perl-faithful per-iteration “Missing
argument” Error instead of silently yielding empty. The silent empty made
zero-progress delimited-scan loops (fancyvrb \FancyVerbGetLine#1^^M
rescanning a replayed tail after an error stub swallowed its sentinel —
willowtreebook) spin to the 50k-box Stomach:Recursion fatal; with the
distinguishable EOF the TooManyErrors latch ends them like Perl’s
MAX_ERRORS does, naming the looping macro. A MATCHED delimiter with empty
content stays Some(empty) — legitimate \def\foo#1;{…}\foo; args.
Is the gullet at the TRUE end of all input — no mouth left beneath the
current one and no reading_from_mouth context open? A delimited read
that misses its delimiter here has really run off the end of the
document (tex.web §338 “File ended while scanning use of”), as opposed
to the artificial end of an isolated reading context, where the
enclosing stream would still hold the delimiter.