HaTeX-3.9.1.0: The Haskell LaTeX library.

Portabilityportable
Stabilityexperimental
Safe HaskellNone

Text.LaTeX.Base.Parser

Description

LaTeX Parser based on Attoparsec

Synopsis

Documentation

parseLaTeX :: Text -> Either String LaTeXSource

Parse a Text sequence as a LaTeX block. If it fails, it returns an error string.

latexParser :: Parser LaTeXSource

Incremental LaTeX parser.

latexBlockParser :: Parser LaTeXSource

Parser of a single LaTeX constructor, no appending blocks.

latexAtOnce :: Text -> Either String LaTeXSource

Deprecated: Use parseLaTeX instead.

latexDocParser :: Parser LaTeXSource

Incremental Parser that terminates after the document envionment