egison-4.1.3: Programming language with non-linear pattern-matching against non-free data
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Language.Egison.Eval

Description

This module provides interface for evaluating Egison expressions.

Synopsis

Eval Egison expressions

evalExpr :: Env -> Expr -> EvalM EgisonValue Source #

Evaluate an Egison expression.

evalTopExpr :: Env -> TopExpr -> EvalM (Maybe EgisonValue, Env) Source #

Evaluate an Egison top expression.

evalTopExprStr :: Env -> TopExpr -> EvalM (Maybe String, Env) Source #

Evaluate an Egison top expression.

evalTopExprs :: Env -> [TopExpr] -> EvalM Env Source #

Evaluate Egison top expressions.

evalTopExprsNoPrint :: Env -> [TopExpr] -> EvalM Env Source #

Evaluate Egison top expressions.

runExpr :: Env -> String -> EvalM EgisonValue Source #

Evaluate an Egison expression. Input is a Haskell string.

runTopExpr :: Env -> String -> EvalM (Maybe EgisonValue, Env) Source #

Evaluate an Egison top expression. Input is a Haskell string.

runTopExprStr :: Env -> String -> EvalM (Maybe String, Env) Source #

Evaluate an Egison top expression. Input is a Haskell string.

runTopExprs :: Env -> String -> EvalM Env Source #

Evaluate Egison top expressions. Input is a Haskell string.

Load Egison files

loadEgisonLibrary :: Env -> FilePath -> EvalM Env Source #

Load an Egison library.

loadEgisonFile :: Env -> FilePath -> EvalM Env Source #

Load an Egison file.