[][src]Module ngc::ast

Data types to represent a parsed G-code program.

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

Structs

Block

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

ParAssign

A parameter assignment.

Program

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

Enums

Arg

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

Call

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

Expr

A G-code expression.

Op

The binary operators known to G-code.

ParId

A reference to a parameter.

UnOp

The unary operators known to G-code.

Word

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