Copyright | Satoshi Egi |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell98 |
This is the top module of Egison.
Synopsis
- module Language.Egison.Types
- 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 :: Bool -> Env -> String -> IO (Either EgisonError EgisonValue)
- runEgisonTopExpr :: Bool -> Env -> String -> IO (Either EgisonError Env)
- runEgisonTopExpr' :: Bool -> Env -> String -> IO (Either EgisonError (Maybe String, Env))
- runEgisonTopExprs :: Bool -> Env -> String -> IO (Either EgisonError Env)
- runEgisonTopExprsNoIO :: Bool -> Env -> String -> IO (Either EgisonError Env)
- loadEgisonLibrary :: Bool -> Env -> FilePath -> IO (Either EgisonError Env)
- loadEgisonFile :: Bool -> Env -> FilePath -> IO (Either EgisonError Env)
- initialEnv :: IO Env
- initialEnvNoIO :: IO Env
- version :: Version
Documentation
module Language.Egison.Types
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 :: Bool -> Env -> String -> IO (Either EgisonError EgisonValue) Source #
eval an Egison expression. Input is a Haskell string.
runEgisonTopExpr :: Bool -> Env -> String -> IO (Either EgisonError Env) Source #
eval an Egison top expression. Input is a Haskell string.
runEgisonTopExpr' :: Bool -> Env -> String -> IO (Either EgisonError (Maybe String, Env)) Source #
eval an Egison top expression. Input is a Haskell string.
runEgisonTopExprs :: Bool -> Env -> String -> IO (Either EgisonError Env) Source #
eval Egison top expressions. Input is a Haskell string.
runEgisonTopExprsNoIO :: Bool -> Env -> String -> IO (Either EgisonError Env) Source #
eval Egison top expressions without IO. Input is a Haskell string.
Load Egison files
loadEgisonLibrary :: Bool -> Env -> FilePath -> IO (Either EgisonError Env) Source #
load an Egison library
loadEgisonFile :: Bool -> 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