g-code 0.2.1

GCode parsing and emission
Documentation

g-code

g-code codecov

A joint crate for GCode parsing and emission.

Parsing

The parser is written in Rust using peg.

Demo

cargo run --example parse ./tests/vandy_commodores_logo.gcode

Output: https://gist.github.com/sameer/5fe20dad6faa6329926df48b82e68581

Emission

Basic primitives for GCode emission.

Demo

See svg2gcode.

TODOs

Parse

  • GCode parameters
  • GCode infix notation

Emit

  • Remaining commonly-used commands
  • Automated line number, newline, and checksum insertion
  • EOL and inline comments

References