---------------------------------------- Expanding token parsers

---------- Main document parser

-- | TeX Lexer: Convert TeX source document to a 'Token' stream.
texLexer :: HandleTeXIO m => LexerT m [Token]
texLexer = optional anyWhite *> tokens <* eof
texLexer :: HandleTeXIO m => LexerT m [Token]
texLexer = optional anyWhite *> tokens <* eof
texLexer = optional anyWhite *> tokens <* eof