Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Patola
Copy link

@Patola Patola commented Sep 26, 2017

G-Code is a language used by 3D printers and CNC machines to print/cut stuff. It is a simple text-based language.

Copy link
Contributor

@vidarh vidarh left a 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
Copy link
Contributor

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 -*- #

Copy link
Contributor

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 -*- #

Copy link
Contributor

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants