Safe Haskell | None |
---|---|
Language | Haskell2010 |
Backtracking parser for Parsing Expression Grammars
Synopsis
- 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 | |
|