Portability | portable |
---|---|
Stability | provisional |
Safe Haskell | Safe-Infered |
Parser for the Sindre programming language. The documentation for this module does not include a description of the language syntax.
- parseSindre :: Program -> SourceName -> String -> Either ParseError Program
- parseInteger :: String -> Maybe Double
Documentation
parseSindre :: Program -> SourceName -> String -> Either ParseError ProgramSource
parseSindre prog filename string
extends the Program
prog
with the declarations in the given Sindre source code. In case of
mutually-exclusive definitions (such as the BEGIN
block, or
identically named functions), the new definitions in string
take
precedence.
parseInteger :: String -> Maybe DoubleSource
Try to parse an integer according to the Sindre syntax, ignoring trailing whitespace.