Gcode.Model.Expr protocol (gcode v1.0.1)

A protocol for evaluating expressions.

Summary

Types

t()

All the types that implement this protocol.

Types

@type expr() :: scalar() | [scalar()]
@type result() :: Gcode.Result.t(expr())
@type scalar() :: number() | boolean() | String.t()
@type t() :: term()

All the types that implement this protocol.

Functions

@spec evaluate(t()) :: result()