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
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,18 @@ Once the line is parsed you can use the HasWord method to determine if a G-Code
37
37
A working example of the parser can be found the following GitHub repository.
38
38
https://github.com/tgolla/SphereBot
39
39
40
+
### `beginEnd`
41
+
The beginEnd attribute is a Boolean which returns true if the first character of the line it the percent character (%) which is used to denote the first and last line of the program.
40
42
41
43
### `blockDelete`
42
44
The blockDelete attribute is a Boolean which returns true when the line begins with a slash '/'.
43
45
44
46
### `comments`
45
47
The comments attribute points to the comment(s) separated from the G-Code command line after executing the ParseLine method. Initially comment(s) contain the comment separators (parenthesis or semicolon). Executing the RemoveCommentSeparators method will remove the comment separators from all of the comments.
46
48
49
+
### `completeLineIsAvailableToParse`
50
+
The completeLineIsAvailableToParse attribute is a Boolean which returns true when there is a line available to parse. The value of the attribute is also returned by `AddCharToLine(char c)`.
51
+
47
52
### `lastComment`
48
53
The lastComment attribute points to the last comment on the command line. This is important as the last command will always be interpreted for active comment syntax.
49
54
@@ -65,6 +70,9 @@ The HasWord method returns a Boolean true if the word (letter followed by value)
65
70
### `IsWord(char letter)`
66
71
The IsWord method returns a Boolean true if the character provided represents a valid G-Code word.
67
72
73
+
### `NoWords()`
74
+
The NoWords method returns a Boolean the if the line is blank and/or has no G-Code words.
75
+
68
76
### `ParseLine()`
69
77
The ParseLine method parses the command line removing whitespace and comments. The method should be used after the AddCharToLine method returns true.
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.1.0
2
+
version=1.2.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