Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Note on these parsers
Seperate parsers are provided for different Fortran versions. A few parsers are provided for each version, offering built-in defaults or allowing you to configure them yourself. They can be identified by their suffix:
parser
: all defaults (without mod files, default transformations)parserWithModFiles
: select mod files, default transformationsparserWithTransforms
: without mod files, select transformationsparserWithModFilesWithTransforms
: select mod files, select transformations
Synopsis
- type Parser = ByteString -> String -> Either ParseErrorSimple (ProgramFile A0)
- parserVersions :: FortranVersion -> Parser
- type ParserWithModFiles = ModFiles -> ByteString -> String -> Either ParseErrorSimple (ProgramFile A0)
- parserWithModFilesVersions :: FortranVersion -> ParserWithModFiles
- fortranParser :: Parser
- fortranParserWithModFiles :: ParserWithModFiles
- fortranParserWithVersion :: FortranVersion -> Parser
- fortranParserWithModFilesAndVersion :: FortranVersion -> ParserWithModFiles
Documentation
type Parser = ByteString -> String -> Either ParseErrorSimple (ProgramFile A0) Source #
type ParserWithModFiles = ModFiles -> ByteString -> String -> Either ParseErrorSimple (ProgramFile A0) Source #
fortranParser :: Parser Source #
Deduce the type of parser from the filename and parse the contents of the file.
fortranParserWithModFiles :: ParserWithModFiles Source #
Deduce the type of parser from the filename and parse the contents of the file, within the context of given "mod files".
fortranParserWithVersion :: FortranVersion -> Parser Source #
Given a FortranVersion, parse the contents of the file.
fortranParserWithModFilesAndVersion :: FortranVersion -> ParserWithModFiles Source #
Given a FortranVersion, parse the contents of the file, within the context of given "mod files".