Module ngc::ast

source · []
Expand description

Data types to represent a parsed G-code program.

The syntax and semantics are described on the G-code reference page from LinuxCNC.

Structs

A block (source line), which contains a number of words and parameter assignments.

A parameter assignment.

A whole program, consisting of blocks. Each block corresponds to a line in the source code.

Enums

The possible argument words (i.e. all words except N, G, M, F, S, T).

A function call, with all functions known to G-code.

A G-code expression.

The binary operators known to G-code.

A reference to a parameter.

The unary operators known to G-code.

A G-code “word”, i.e. indication letter and value.