Factor.Value
Description
data Value Source #
Constructors
Defined in Factor.Value
Methods
(==) :: Value -> Value -> Bool #
(/=) :: Value -> Value -> Bool #
compare :: Value -> Value -> Ordering #
(<) :: Value -> Value -> Bool #
(<=) :: Value -> Value -> Bool #
(>) :: Value -> Value -> Bool #
(>=) :: Value -> Value -> Bool #
max :: Value -> Value -> Value #
min :: Value -> Value -> Value #
showsPrec :: Int -> Value -> ShowS #
show :: Value -> String #
showList :: [Value] -> ShowS #
free :: Value -> Set Var Source #
normalize :: Value -> Value Source #
negate :: Value -> Value Source #
add :: Value -> Value -> Value Source #
subtract :: Value -> Value -> Value Source #
multiply :: Value -> Value -> Value Source #
exp :: Value -> Value -> Value Source #
fromTerm :: Term -> Value Source #
toTerm :: Value -> Term Source #
toString :: Value -> String Source #
type Env = Map Var Value Source #
emptyEnv :: Env Source #
lookupEnv :: Env -> Var -> Value Source #
extendEnv :: Env -> Var -> Value -> Env Source #
data Context Source #
(==) :: Context -> Context -> Bool #
(/=) :: Context -> Context -> Bool #
compare :: Context -> Context -> Ordering #
(<) :: Context -> Context -> Bool #
(<=) :: Context -> Context -> Bool #
(>) :: Context -> Context -> Bool #
(>=) :: Context -> Context -> Bool #
max :: Context -> Context -> Context #
min :: Context -> Context -> Context #
showsPrec :: Int -> Context -> ShowS #
show :: Context -> String #
showList :: [Context] -> ShowS #
combineContext :: Context -> Context -> Context Source #
modContext :: Value -> Context Source #
context :: Value -> Context Source #
reduceInContext :: Context -> Value -> Value Source #
importIntoContext :: Context -> Value -> Value Source #
align :: Value -> Value -> (Value, Value) Source #
interpret :: Env -> Context -> Term -> Value Source #