Parses a single Tok satisfying a predicate.
Modulecommonmark-0.2.6Haskell2010
Commonmark.TokParsers
- 21 values
- Packagecommonmark-0.2.6
- Exports21
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceTokParsers.hs
Parses a WordChars token matching a predicate.
Parses any Tok.
Parses a Symbol with character c.
Parses one or more whitespace Toks.
Parses a LineEnd token.
Parses a Spaces token.
Parses a Tok with one of the listed types.
Parses a Tok with none of the listed types.
Parses exactly n spaces. If tabs are encountered,
they are split into spaces before being consumed; so
a tab may be partially consumed by this parser.
Parses up to n spaces.
Applies a parser and returns its value (if successful) plus a list of the raw tokens parsed.
Filters tokens of a certain type.
Filters tokens with certain contents.
Parse optional spaces and an endline.
Efficiently parse the remaining tokens on a line, including the LineEnd (if any).
Case-insensitive membership in a list of Texts.
Gobble up to 3 spaces (may be part of a tab).
Apply p many times until stop succeeds, discarding results.
Efficiently skip Toks satisfying a certain condition.