Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FailureInfo s = FailureInfo Int [Expected s]
- data ResultList s r = ResultList !(BinTree (ResultInfo s r)) !(FailureInfo s)
- data Parser (g :: (* -> *) -> *) s r
- fromResultList :: (Eq s, FactorialMonoid s) => s -> ResultList s r -> ParseResults s [(s, r)]
Documentation
data FailureInfo s Source #
FailureInfo Int [Expected s] |
Instances
Eq s => Eq (FailureInfo s) Source # | |
Defined in Text.Grampa.Internal (==) :: FailureInfo s -> FailureInfo s -> Bool # (/=) :: FailureInfo s -> FailureInfo s -> Bool # | |
Show s => Show (FailureInfo s) Source # | |
Defined in Text.Grampa.Internal showsPrec :: Int -> FailureInfo s -> ShowS # show :: FailureInfo s -> String # showList :: [FailureInfo s] -> ShowS # | |
Semigroup (FailureInfo s) Source # | |
Defined in Text.Grampa.Internal (<>) :: FailureInfo s -> FailureInfo s -> FailureInfo s # sconcat :: NonEmpty (FailureInfo s) -> FailureInfo s # stimes :: Integral b => b -> FailureInfo s -> FailureInfo s # | |
Monoid (FailureInfo s) Source # | |
Defined in Text.Grampa.Internal mempty :: FailureInfo s # mappend :: FailureInfo s -> FailureInfo s -> FailureInfo s # mconcat :: [FailureInfo s] -> FailureInfo s # |
data ResultList s r Source #
ResultList !(BinTree (ResultInfo s r)) !(FailureInfo s) |
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 :: (Eq s, FactorialMonoid s) => s -> ResultList s r -> ParseResults s [(s, r)] Source #