Copyright | (c) Stefan Berthold 2014-2015 |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | stefan.berthold@gmx.net |
Stability | unstable |
Portability | GHC |
Safe Haskell | Safe |
Language | Haskell2010 |
This modules specifies parsers that consume a TeXElement
token stream
and produce a LaTeXElement
token stream.
- type Parser = ParsecT TeX () (Writer [Text])
- parse :: Parser [a] -> TeX -> ([a], [Text])
- parse' :: Parser a -> TeX -> (Either ParseError a, [Text])
- latex :: Parser LaTeX
- satisfy :: (TeXElement -> Bool) -> Parser TeXElement
- skipMacro :: Text -> Parser TeXElement
- translate :: TeXElement -> (LaTeXElement, [Text])
- translateTell :: Monad m => TeXElement -> WriterT [Text] m LaTeXElement
- macroSatisfy :: (TeXElement -> Bool) -> Parser LaTeXElement
- macro :: Parser LaTeXElement
- macroTextArg :: Text -> Parser Text
- environment :: Parser LaTeXElement
- anyBlock :: Parser LaTeXElement
- anyBBlock :: Parser LaTeXElement
- macroArguments :: Parser LaTeX
- latexElement :: Parser LaTeXElement
- beginEnv :: Parser Text
- endEnv :: Parser Text
- isEndEnv :: TeXElement -> Bool
- updpos :: SourcePos -> t -> s -> SourcePos
Documentation
Parser
TeXElement
satisfy :: (TeXElement -> Bool) -> Parser TeXElement Source
skipMacro :: Text -> Parser TeXElement Source
LaTeXElement
translate :: TeXElement -> (LaTeXElement, [Text]) Source
translateTell :: Monad m => TeXElement -> WriterT [Text] m LaTeXElement Source
macroSatisfy :: (TeXElement -> Bool) -> Parser LaTeXElement Source
macroTextArg :: Text -> Parser Text Source
isEndEnv :: TeXElement -> Bool Source