Module value

Source
Expand description

This module contains the Value struct, which represents a variable or function stored within an Environment. It also contains all the logic for manipulating values (such as addition, comparison or conversion between types).

Structs§

Function
This struct is how the interpreter stores functions. It contains the function’s parameters, body and a reference to the environment in which it was defined.

Enums§

Value
The Value enum represents a data type that can be stored in an Environment. Each type contains the data it represents (e.g. a Value::Integer contains an i64).