| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Language.Janus.Parser
- parseProgram :: String -> String -> Either ParseError Program
- parseStatement :: String -> Either ParseError Stmt
- parseExpression :: String -> Either ParseError Expr
- parseLiteral :: String -> Either ParseError Val
Documentation
Arguments
| :: String | File name (used in error messages) |
| -> String | Source code |
| -> Either ParseError Program |
Parse whole Janus program source code.
Arguments
| :: String | Source code |
| -> Either ParseError Stmt |
Parse single statement
Arguments
| :: String | Source code |
| -> Either ParseError Expr |
Parse single expression