Documentation
¶
Overview ¶
evaluator package is responsible for evaluating the AST nodes and returning the result of the evaluation.
It uses the object package to create and return the evaluated objects. The evaluator package is the heart of the interpreter, where the actual evaluation of the AST nodes happens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Eval ¶
Eval function is the entry point to the evaluator package. It takes an AST node and an environment object as input and returns the evaluated object. The environment object is used to store and retrieve variables and their values. The Eval function is a recursive function that evaluates the AST nodes and returns the evaluated object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.