New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a simple reprap G-Code parser. #789
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I'm trying to help triage pull requests so we can work down the backlog. Couple of minor nitpicks - see commits on the commits.
One bigger one: Please submit a smaller spec/visual/samples/gcode. The purpose is to have something that includes tests for most of the lexer rules, and since this lexer is this small there really shouldn't be need for something that huge.
desc 'A generic lexer for reprap/cnc g-code files' | ||
filenames '*.gco', '*.ngc', '*.gcode', '*.g' | ||
|
||
# short and sweet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is indeed short and sweet, but please remove
@@ -0,0 +1,28 @@ | |||
# -*- coding: utf-8 -*- # | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add '# frozen_string_literal: true'
@@ -0,0 +1,13 @@ | |||
# -*- coding: utf-8 -*- # | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add '# frozen_string_literal: true'
G-Code is a language used by 3D printers and CNC machines to print/cut stuff. It is a simple text-based language.