libcspm-0.2.0: A library providing a parser, type checker and evaluator for CSPM.

CSPM.Evaluator

Synopsis

Documentation

evaluateDecl :: TCDecl -> EvaluationMonad [(Name, EvaluationMonad Value)]Source

Evaluates the declaration but doesn't add it to the current environment.

evaluateFile :: [TCModule] -> EvaluationMonad [(Name, EvaluationMonad Value)]Source

Evaluates the declaration but doesn't add it to the current environment.

initEvaluator :: EvaluationStateSource

The environment to use initially. This uses the IO monad as the EvaluationMonad cannot be used without a valid environment.