egison-2.4.6: An Interpreter and Compiler for the Programming Language Egison

Safe HaskellSafe-Inferred

Language.Egison.Parser

Synopsis

Documentation

parseExpr :: Parser EgisonExprSource

Parse an expression

readOrThrow :: Parser a -> String -> ThrowsError aSource

Use a parser to parse the given text, throwing an error if there is a problem parsing the text.

readTopExpr :: String -> ThrowsError TopExprSource

Parse an top expression from a string of text

readExpr :: String -> ThrowsError EgisonExprSource

Parse an expression from a string of text

readTopExprList :: String -> ThrowsError [TopExpr]Source

Parse many top expressions from a string of text