Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FailureInfo = FailureInfo Int [String]
- data ResultList s r = ResultList !(BinTree (ResultInfo s r)) !FailureInfo
- data Parser (g :: (* -> *) -> *) s r
- fromResultList :: FactorialMonoid s => s -> ResultList s r -> ParseResults [(s, r)]
Documentation
data FailureInfo Source #
Instances
Eq FailureInfo Source # | |
Defined in Text.Grampa.ContextFree.Parallel (==) :: FailureInfo -> FailureInfo -> Bool # (/=) :: FailureInfo -> FailureInfo -> Bool # | |
Show FailureInfo Source # | |
Defined in Text.Grampa.ContextFree.Parallel showsPrec :: Int -> FailureInfo -> ShowS # show :: FailureInfo -> String # showList :: [FailureInfo] -> ShowS # | |
Semigroup FailureInfo Source # | |
Defined in Text.Grampa.ContextFree.Parallel (<>) :: FailureInfo -> FailureInfo -> FailureInfo # sconcat :: NonEmpty FailureInfo -> FailureInfo # stimes :: Integral b => b -> FailureInfo -> FailureInfo # | |
Monoid FailureInfo Source # | |
Defined in Text.Grampa.ContextFree.Parallel mempty :: FailureInfo # mappend :: FailureInfo -> FailureInfo -> FailureInfo # mconcat :: [FailureInfo] -> FailureInfo # |
data ResultList s r Source #
ResultList !(BinTree (ResultInfo s r)) !FailureInfo |
Instances
data Parser (g :: (* -> *) -> *) s r Source #
Parser type for context-free grammars using a parallel parsing algorithm with no result sharing nor left recursion support.
Instances
fromResultList :: FactorialMonoid s => s -> ResultList s r -> ParseResults [(s, r)] Source #