cyclone/docs/api/scheme/eval.md
2018-02-05 17:21:57 -05:00

951 B

layout title
main API

Eval Library

The (scheme eval) library exports procedures for evaluating Scheme data as programs.

For more information see the R7RS Scheme Specification.

eval

(eval expr . environment)

Evaluate expr in the specified environment and return the resulting value(s).

A non-standard extension is provided to supply a default global environment if the environment argument is not specified.

create-environment

(create-environment vars values)

A non-standard function to create a new environment on top of the default one.

vars is a list of identifiers in the new environment, and values is a list of each value assigned to each identifier.

setup-environment

(setup-environment)

A non-standard function to initialize a new global environment.