| Safe Haskell | None |
|---|
Text.LaTeX.Base.Parser
Description
This is the LaTeX parser module.
- parseLaTeX :: Text -> Either ParseError LaTeX
- data ParseError
Documentation
parseLaTeX :: Text -> Either ParseError LaTeXSource
Parse a LaTeX expression written in Text, to a LaTeX AST.
It returns a ParseError in case of parsing error.
data ParseError
The abstract data type ParseError represents parse errors. It
provides the source position (SourcePos) of the error
and a list of error messages (Message). A ParseError
can be returned by the function parse. ParseError is an
instance of the Show class.
Instances