new Lexer(s: string)private
Given a LaTeX expression represented as a character string, the Lexer class will scan and return Tokens for the lexical units in the string.
A string of LaTeX
end(): booleanprivate→ : boolean
True if we reached the end of the stream
Return the next char and advance
Return true if next char is white space. Does not advance.
Return a single token, or null, created from the lexer.
Return the next char, but do not advance
scan(regEx: RegEx): nullable stringprivate
Return the next substring matching regEx and advance.