Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
data FortranVersion Source #
data ParanthesesCount Source #
data ParseState a Source #
ParseState | |
|
Show a => Show (ParseState a) Source # | |
(Loc b, LastToken b c, Show c) => MonadState (ParseState b) (Parse b c) Source # | |
data ParseError a b Source #
ParseError | |
|
data ParseResult b c a Source #
ParseOk a (ParseState b) | |
ParseFailed (ParseError b c) |
Parse | |
|
(Loc b, LastToken b c, Show c) => MonadState (ParseState b) (Parse b c) Source # | |
(Loc b, LastToken b c, Show c) => Monad (Parse b c) Source # | |
(Loc b, LastToken b c, Show c) => Functor (Parse b c) Source # | |
(Loc b, LastToken b c, Show c) => Applicative (Parse b c) Source # | |
(Loc b, LastToken b c, Show c) => MonadError (ParseError b c) (Parse b c) Source # | |
getVersion :: (Loc a, LastToken a b, Show b) => Parse a b FortranVersion Source #
getParanthesesCount :: (Loc a, LastToken a b, Show b) => Parse a b ParanthesesCount Source #
throwIOerror :: String -> a Source #
runParse :: (Loc b, LastToken b c, Show c) => Parse b c a -> ParseState b -> (a, ParseState b) Source #
execParse :: (Loc b, LastToken b c, Show c) => Parse b c a -> ParseState b -> ParseState b Source #
collectTokens :: forall a b. (Loc b, Tok a, LastToken b a, Show a) => Parse b a a -> ParseState b -> [a] Source #
collectTokensSafe :: forall a b. (Loc b, Tok a, LastToken b a, Show a) => Parse b a a -> ParseState b -> Maybe [a] Source #