← Ecky CAD / Ecky Language Reference

REFERENCE / 08

Value Kinds and IR Nodes

Type errors tell you what kind of value a function expected. These are the types you will encounter while authoring:

KindMeaningExample
NumberScalar dimension, angle, count, or other numeric value12, 4mm
BooleanTrue or falsetrue, (< width 20)
TextA string"lid"
ListOrdered values(list 1 2 3)
Point2Two coordinates(vec2 10 20)
Point3Three coordinates(vec3 10 20 5)
SketchPlanar geometry used as a profile(circle 8)
PathRoute through points(path (0 0 0) (0 0 20))
FramePosition and orientation(plane :origin '(0 0 10))
SolidGeometry with volume(box 20 10 4)
CompoundGrouped geometry(compound a b)
AnyNo narrower type required at this positionDepends on the call

For example, passing (box 20 10 4) to a function that expects a sketch is a type mismatch. Use a 2D profile such as (rectangle 20 10) instead.

IR means the compiler's intermediate representation. Names such as Literal, Call, Reference, Build, and Let describe internal nodes in diagnostics; they are not additional geometry functions.