Copyright | Satoshi Egi |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell98 |
This is the top module of Egison.
- module Language.Egison.Types
- module Language.Egison.Parser
- module Language.Egison.Primitives
- evalEgisonExpr :: Env -> EgisonExpr -> IO (Either EgisonError EgisonValue)
- evalEgisonTopExpr :: Env -> EgisonTopExpr -> IO (Either EgisonError Env)
- evalEgisonTopExprs :: Env -> [EgisonTopExpr] -> IO (Either EgisonError Env)
- evalEgisonTopExprsTestOnly :: Env -> [EgisonTopExpr] -> IO (Either EgisonError Env)
- runEgisonExpr :: Env -> String -> IO (Either EgisonError EgisonValue)
- runEgisonTopExpr :: Env -> String -> IO (Either EgisonError Env)
- runEgisonTopExprs :: Env -> String -> IO (Either EgisonError Env)
- runEgisonTopExprsNoIO :: Env -> String -> IO (Either EgisonError Env)
- loadEgisonLibrary :: Env -> FilePath -> IO (Either EgisonError Env)
- loadEgisonFile :: Env -> FilePath -> IO (Either EgisonError Env)
- initialEnv :: IO Env
- initialEnvNoIO :: IO Env
- version :: Version
Documentation
module Language.Egison.Types
module Language.Egison.Parser
module Language.Egison.Primitives
Eval Egison expressions
evalEgisonExpr :: Env -> EgisonExpr -> IO (Either EgisonError EgisonValue) Source #
eval an Egison expression
evalEgisonTopExpr :: Env -> EgisonTopExpr -> IO (Either EgisonError Env) Source #
eval an Egison top expression
evalEgisonTopExprs :: Env -> [EgisonTopExpr] -> IO (Either EgisonError Env) Source #
eval Egison top expressions
evalEgisonTopExprsTestOnly :: Env -> [EgisonTopExpr] -> IO (Either EgisonError Env) Source #
eval Egison top expressions and execute test expressions
runEgisonExpr :: Env -> String -> IO (Either EgisonError EgisonValue) Source #
eval an Egison expression. Input is a Haskell string.
runEgisonTopExpr :: Env -> String -> IO (Either EgisonError Env) Source #
eval an Egison top expression. Input is a Haskell string.
runEgisonTopExprs :: Env -> String -> IO (Either EgisonError Env) Source #
eval Egison top expressions. Input is a Haskell string.
runEgisonTopExprsNoIO :: Env -> String -> IO (Either EgisonError Env) Source #
eval Egison top expressions without IO. Input is a Haskell string.
Load Egison files
loadEgisonLibrary :: Env -> FilePath -> IO (Either EgisonError Env) Source #
load an Egison library
loadEgisonFile :: Env -> FilePath -> IO (Either EgisonError Env) Source #
load an Egison file
Environment
initialEnv :: IO Env Source #
Environment that contains core libraries
initialEnvNoIO :: IO Env Source #
Environment that contains core libraries without IO primitives