| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Language.Fortran.ParserMonad
Documentation
data FortranVersion Source #
Constructors
| Fortran66 | |
| Fortran77 | |
| Fortran77Extended | |
| Fortran77Legacy | |
| Fortran90 | |
| Fortran95 | |
| Fortran2003 | |
| Fortran2008 |
Instances
fortranVersionAliases :: [(String, FortranVersion)] Source #
data ParanthesesCount Source #
Constructors
| ParanthesesCount | |
Fields
| |
Instances
| Eq ParanthesesCount Source # | |
Defined in Language.Fortran.ParserMonad Methods (==) :: ParanthesesCount -> ParanthesesCount -> Bool # (/=) :: ParanthesesCount -> ParanthesesCount -> Bool # | |
| Show ParanthesesCount Source # | |
Defined in Language.Fortran.ParserMonad Methods showsPrec :: Int -> ParanthesesCount -> ShowS # show :: ParanthesesCount -> String # showList :: [ParanthesesCount] -> ShowS # | |
Constructors
| ConStart | |
| ConData | |
| ConImplicit | |
| ConNamelist | |
| ConCommon |
data ParseState a Source #
Constructors
| ParseState | |
Fields
| |
Instances
| Show a => Show (ParseState a) Source # | |
Defined in Language.Fortran.ParserMonad Methods showsPrec :: Int -> ParseState a -> ShowS # show :: ParseState a -> String # showList :: [ParseState a] -> ShowS # | |
| (Loc b, LastToken b c, Show c) => MonadState (ParseState b) (Parse b c) Source # | |
Defined in Language.Fortran.ParserMonad Methods get :: Parse b c (ParseState b) # put :: ParseState b -> Parse b c () # state :: (ParseState b -> (a, ParseState b)) -> Parse b c a # | |
data ParseError a b Source #
Constructors
| ParseError | |
Fields
| |
Instances
| Show b => Show (ParseError a b) Source # | |
Defined in Language.Fortran.ParserMonad Methods showsPrec :: Int -> ParseError a b -> ShowS # show :: ParseError a b -> String # showList :: [ParseError a b] -> ShowS # | |
| (Typeable a, Typeable b, Show a, Show b) => Exception (ParseError a b) Source # | |
Defined in Language.Fortran.ParserMonad Methods toException :: ParseError a b -> SomeException # fromException :: SomeException -> Maybe (ParseError a b) # displayException :: ParseError a b -> String # | |
| (Loc b, LastToken b c, Show c) => MonadError (ParseError b c) (Parse b c) Source # | |
Defined in Language.Fortran.ParserMonad Methods throwError :: ParseError b c -> Parse b c a # catchError :: Parse b c a -> (ParseError b c -> Parse b c a) -> Parse b c a # | |
data ParseResult b c a Source #
Constructors
| ParseOk a (ParseState b) | |
| ParseFailed (ParseError b c) |
Instances
| Functor (ParseResult b c) Source # | |
Defined in Language.Fortran.ParserMonad Methods fmap :: (a -> b0) -> ParseResult b c a -> ParseResult b c b0 # (<$) :: a -> ParseResult b c b0 -> ParseResult b c a # | |
data ParseErrorSimple Source #
Constructors
| ParseErrorSimple | |
Instances
| Show ParseErrorSimple Source # | |
Defined in Language.Fortran.ParserMonad Methods showsPrec :: Int -> ParseErrorSimple -> ShowS # show :: ParseErrorSimple -> String # showList :: [ParseErrorSimple] -> ShowS # | |
fromParseResultUnsafe :: Show c => ParseResult b c a -> a Source #
fromParseResult :: Show c => ParseResult b c a -> Either ParseErrorSimple a Source #
Constructors
| Parse | |
Fields
| |
Instances
| (Loc b, LastToken b c, Show c) => MonadState (ParseState b) (Parse b c) Source # | |
Defined in Language.Fortran.ParserMonad Methods get :: Parse b c (ParseState b) # put :: ParseState b -> Parse b c () # state :: (ParseState b -> (a, ParseState b)) -> Parse b c a # | |
| (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 # | |
Defined in Language.Fortran.ParserMonad | |
| (Loc b, LastToken b c, Show c) => MonadError (ParseError b c) (Parse b c) Source # | |
Defined in Language.Fortran.ParserMonad Methods throwError :: ParseError b c -> Parse b c a # catchError :: Parse b c a -> (ParseError b c -> Parse b c a) -> Parse b c a # | |
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 -> ParseResult b c a Source #
runParseUnsafe :: (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 #