sindre-0.2: A programming language for simple GUIs

Portabilityportable
Stabilityprovisional

Sindre.Parser

Description

Parser for the Sindre programming language. The documentation for this module does not include a description of the language syntax.

Synopsis

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.