Documentation ¶
Overview ¶
Package eval provides an expression evaluator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expr ¶
type Expr interface { // Eval returns the value of this Expr in the environment env. Eval(env Env) float64 // Check reports errors in this Expr and adds its Vars to the set. Check(vars map[Var]bool) error // Pretty pink the syntax tree String() string // Set up Environment Environment(env Env) Env }
An Expr is an arithmetic expression.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.