Portability | GHC-only |
---|---|
Stability | experimental |
Maintainer | Fontaine@cs.uni-duesseldorf.de |
An API for the Interpreter.
- runFile :: FilePath -> String -> IO ()
- evalTest :: FilePath -> String -> IO Value
- getSigma :: Env -> Sigma
- prepareAST :: ModuleFromRenaming -> Module INT
- runInterpreter :: Module INT -> UniqueIdent -> (Value, Env)
- runInterpreterP :: Module INT -> UniqueIdent -> (Process, Env)
- module CSPM.Interpreter.Types
- lookupIdent :: LIdent -> EM Value
- bindIdent :: LIdent -> Value -> Bindings -> Bindings
- emptyBindings :: Bindings
- lookupAllChannels :: EM [Channel]
Documentation
Load a specification from a file and evaluate an expression in the context.
Print the result to stdout
and handle some exceptions.
Load a specification from a file and evaluate an expression in the context.
runInterpreter :: Module INT -> UniqueIdent -> (Value, Env)Source
Run the interpreter for a given module and top-level identifier.
runInterpreterP :: Module INT -> UniqueIdent -> (Process, Env)Source
Run the interpreter for a given module and top-level identifier. Cast result to a process
module CSPM.Interpreter.Types
lookupIdent :: LIdent -> EM ValueSource