GMaker is a G-code editor for my drawing robot.
The drawing robot works under the following restrictions:
- Size is A4 paper (297mm x 210mm)
- Origin is at upper left corner
- X axis goes from 0 to 297mm`
- It is actually a bit more, but it is designed to be compatible with A4 paper
- Y axis goes from 0 to -210mm
- This is due to the design of the machine which is based on the CoreXY principle.
It contains a G-code parser generated with nearley.js in combination with the Moo lexer. The visualization is done using Paper.js.
- Syntax highlighting.
- WYSIWYG editing.
- Link between visual item and editor linenumber.
- Validation of G-code to ensure proper operation of the drawing robot.