You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,14 +67,20 @@ The GetWordValue returns the value that follows the word character provided. If
67
67
### `HasWord(char letter)`
68
68
The HasWord method returns a Boolean true if the word (letter followed by value). The method does test to confirm the character provided is a valid G-Code word.
69
69
70
+
### `Initialize()`
71
+
The Initialize method is call when the class in initialized and each time a new line is detected in `AddCharToLine(char c)`. If using the same instance of the GCodeParser with multiple files you may need to manually execute the method.
72
+
70
73
### `IsWord(char letter)`
71
74
The IsWord method returns a Boolean true if the character provided represents a valid G-Code word.
72
75
73
76
### `NoWords()`
74
77
The NoWords method returns a Boolean the if the line is blank and/or has no G-Code words.
75
78
76
79
### `ParseLine()`
77
-
The ParseLine method parses the command line removing whitespace and comments. The method should be used after the AddCharToLine method returns true.
80
+
The ParseLine method parses the command line removing whitespace and comments. The method should be used after the `AddCharToLine` method returns true.
81
+
82
+
### `ParseLine(char* gCode)`
83
+
The ParseLine method when passed g-code parses the command line passed removing whitespace and comments. The method is an alternative to first using the `AddCharToLine` method to build a line.
78
84
79
85
### `RemoveCommentSeparators()`
80
86
The RemoveCommentSeparators removes the comment separators (parenthesis or semicolon) from of the comments. The method should be used after the command line is parsed.
Copy file name to clipboardExpand all lines: library.properties
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
name=GCodeParser
2
-
version=1.2.1
2
+
version=1.3.0
3
3
author=Terence F. Golla tfg@terencegolla.com
4
4
maintainer=Terence F. Golla tfg@terencegolla.com
5
5
sentence=The GCodeParser library is a lightweight G-Code parser for the Arduino using only a single character buffer to first collect a line of code (also called a 'block') from a serial or file input and then parse that line into a code block and comments.
0 commit comments