Gcode.Model.Word (gcode v0.4.1)

A G-code word.

Link to this section Summary

Functions

Initialise a word with a command and an address.

Link to this section Types

Specs

t() :: %Gcode.Model.Word{address: Gcode.Model.Expr.t(), word: String.t()}

Link to this section Functions

Link to this function

init(word, address)

Specs

Initialise a word with a command and an address.

Example

iex> Word.init("G", 0)
{:ok, %Word{word: "G", address: %Integer{i: 0}}}