janus-0.1.0.0: Simple scripting language written in Haskell, project for Fuctional Programming Course at AGH UST

Safe HaskellNone
LanguageHaskell2010

Language.Janus.Stdlib

Synopsis

Documentation

importStdlib :: InterpM () Source #

Import standard library items into current interpreter.

retVal :: ToVal a => a -> InterpM Val Source #

   retVal = return . toVal

throwEx :: String -> InterpM a Source #

Throw CustomError with given message.

putNativeVar :: ToVal a => String -> a -> InterpM () Source #

Allocate value and bind it to variable.

putNativeFunc Source #

Arguments

:: String

Function name

-> [String]

Function parameters names

-> ([Val] -> InterpM Val)

Function

-> InterpM () 

Declare native function.