Safe Haskell | None |
---|---|
Language | Haskell2010 |
Backtracking parser for Parsing Expression Grammars
- newtype Parser g s r = Parser {
- applyParser :: s -> Result g s r
- data Result (g :: (* -> *) -> *) s v
- = Parsed {
- parsedPrefix :: !v
- parsedSuffix :: !s
- | NoParse FailureInfo
- = Parsed {
- alt :: Parser g s a -> Parser g s a -> Parser g s a
Documentation
Parser type for Parsing Expression Grammars that uses a backtracking algorithm, fast for grammars in LL(1) class but with potentially exponential performance for longer ambiguous prefixes.
Parser | |
|
MultiParsing Parser Source # | Backtracking PEG parser
|
MonoidParsing (Parser g) Source # | |
Monad (Parser g s) Source # | |
Functor (Parser g s) Source # | |
Applicative (Parser g s) Source # | |
FactorialMonoid s => Alternative (Parser g s) Source # | |
FactorialMonoid s => MonadPlus (Parser g s) Source # | |
(Lexical g, LexicalConstraint Parser g s, Show s, TextualMonoid s) => TokenParsing (Parser g s) Source # | |
FactorialMonoid s => LookAheadParsing (Parser g s) Source # | |
(Show s, TextualMonoid s) => CharParsing (Parser g s) Source # | |
FactorialMonoid s => Parsing (Parser g s) Source # | |
Semigroup x => Semigroup (Parser g s x) Source # | |
Monoid x => Monoid (Parser g s x) Source # | |
type ResultFunctor Parser Source # | |
type GrammarConstraint Parser g Source # | |
data Result (g :: (* -> *) -> *) s v Source #
Parsed | |
| |
NoParse FailureInfo |