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

Safe HaskellNone

CSPM.Evaluator

Synopsis

Documentation

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

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

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

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

maybeProcessNameToProcess :: ProcName -> EvaluationMonad (Maybe UProc)Source

Attempts to convert a process name to a process, if possible.

initEvaluator :: EvaluatorOptions -> IO EvaluationStateSource

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