G-code Syntax Requirements
This subtree collects the review-first parser-input requirements for G-code syntax. It describes what input forms should be accepted or rejected, not only what is implemented today.
For each syntax family, review should answer:
- what input forms must be accepted
- what input forms must be rejected
- what diagnostics are required
- what parse structure should be preserved
- what tests and fixtures must exist
Review Status
Status values used in this subtree:
WantedReviewedDeferredRejected
Current state:
Wanted: initial consolidated checklist extracted from the product spec (../../product/spec/index.md)- not yet fully reviewed item-by-item
Syntax Requirement Areas
- Line and Program Structure
- Comments and Whitespace
- Motion, Modal, Dwell, and M Functions
- Variables, Control Flow, Subprograms, and Tools
Requirement Inventory Output
When review is complete, each syntax family should eventually carry:
- reviewed status
- canonical examples
- invalid examples
- owning tests and fixtures
- linked work unit IDs