Gcode.Model.Expr protocol (gcode v0.4.1)

A protocol for evaluating expressions.

Link to this section Summary

Link to this section Types

Specs

expr() :: scalar() | [scalar()]

Specs

result() :: Gcode.Result.t(expr())

Specs

scalar() :: number() | boolean() | String.t()

Specs

t() :: term()

Link to this section Functions

Specs

evaluate(t()) :: result()