HaTeX-3.2.0.1: LaTeX code writer.

Safe HaskellNone

Text.LaTeX.Base.Parser

Description

This is the LaTeX parser module.

Synopsis

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