The offset of the next code point.
Whether the whole text is read.
Returns the next code point without reading it, or undefined at the end of the text.
Reads the next code point and returns it, or returns undefined at the end of the text.
Whether the text ahead starts with expected. The call reads nothing.
Reads expected when the text ahead starts with it, and returns whether it did.
Reads code points as long as accepts holds for the next one, and returns what it read.
The scanner stands in front of a code point while accepts judges it.
Reads the white space ahead.
Returns the span from start, an earlier position, to the current position.
A reader of a text from its start to its end, for the lexer of a notation. The scanner reads whole code points, so a character outside the basic plane, such as an emoji, is one step. Its position counts UTF-16 code units, so a span cuts the text with
slice.