TeXScanner
texd.spad line 1 [edit on github]
This package implements a scanner for TeX.
- at_eos?: Record(str: String, pos: Integer) -> Boolean
at_eos?(s) returns true if and only if input is at the end of string.
- get_token!: Record(str: String, pos: Integer) -> Union(text: String, lbrace: lbrace, rbrace: rbrace, tmath: tmath, dmath: dmath, macro_name: Record name: String, eos: eos, error: error)
get_token!(s) gets new token from the string and moves input position after retruned token.