[−][src]Crate gcode
A gcode parsing library designed for no_std
environments.
Feature Flags
To help reduce compilation times and overall code size, this crate puts
extra functionality behind several cargo
features.
std
: Enables various features/optimisations which require allocation or implementing traits fromstd
(e.g.std::error::Error
).transforms
: Exposes the transformations API for manipulatingGcode
s before executing or writing to a file.large-buffers
(on-by-default): Increases the number of commands, comments and arguments which can be added to a block (seeBlock::MAX_COMMENT_COUNT
,Block::MAX_COMMAND_COUNT
, andGcode::MAX_ARGUMENT_COUNT
for more).
Structs
Argument | A command argument, the |
Block | A block containing |
Comment | A comment. |
Gcode | A single gcode command. |
Nop | A no-op set of callbacks. |
Parser | An error-resistent streaming gcode parser. |
Span | The location of something within a string. |
Enums
Mnemonic | The general category a |
TokenKind | The various token types that make up a gcode program. |
Traits
Callbacks | Callback functions the |
Functions
parse | Convenience function for parsing a string of text into |