howl-0.1.0.0: A small Wolfram Language interpreter and symbolic rewriting library
Safe HaskellNone
LanguageGHC2021

Howl.Builtins

Description

The standard builtin definitions and initialization helpers.

This module embeds the standard Wolfram-language prelude, installs the standard builtin rules into a context, and provides convenience functions for running Eval computations with those builtins loaded.

Synopsis

Documentation

preludeWL :: Text #

The embedded standard Wolfram-language prelude.

addBuiltins :: Eval () #

Add the standard builtins and prelude definitions to the current context.

newContextWithBuiltins :: IO Context #

Create a new context initialized with the standard builtins.

runEval :: Eval a -> IO a #

Create a new context, initialize it with the standard builtins using addBuiltins, and run the Eval computation in that context.