lower case commands
This commit is contained in:
parent
bedd122047
commit
b4ba611b50
|
@ -39,10 +39,10 @@ statement : command ( ';' command )* NEWLINE?
|
|||
;
|
||||
|
||||
command
|
||||
: 'GO' ( coords | name value | name ) #Go
|
||||
| 'PAUSE' number #Pause
|
||||
| 'WAIT' number? #Wait
|
||||
| 'PASS' #Pass
|
||||
: 'go' ( coords | name value | name ) #Go
|
||||
| 'pause' number #Pause
|
||||
| 'wait' number? #Wait
|
||||
| 'pass' #Pass
|
||||
;
|
||||
|
||||
coords : '{' value? ( seperator value? )* '}' ;
|
||||
|
|
|
@ -29,11 +29,11 @@ def serializedATN():
|
|||
buf.write("\2\2\7(\3\2\2\2\t.\3\2\2\2\13\63\3\2\2\2\r8\3\2\2\2\17")
|
||||
buf.write(":\3\2\2\2\21<\3\2\2\2\23D\3\2\2\2\25P\3\2\2\2\27S\3\2")
|
||||
buf.write("\2\2\31U\3\2\2\2\33W\3\2\2\2\35Z\3\2\2\2\37_\3\2\2\2!")
|
||||
buf.write("u\3\2\2\2#$\7=\2\2$\4\3\2\2\2%&\7I\2\2&\'\7Q\2\2\'\6\3")
|
||||
buf.write("\2\2\2()\7R\2\2)*\7C\2\2*+\7W\2\2+,\7U\2\2,-\7G\2\2-\b")
|
||||
buf.write("\3\2\2\2./\7Y\2\2/\60\7C\2\2\60\61\7K\2\2\61\62\7V\2\2")
|
||||
buf.write("\62\n\3\2\2\2\63\64\7R\2\2\64\65\7C\2\2\65\66\7U\2\2\66")
|
||||
buf.write("\67\7U\2\2\67\f\3\2\2\289\7}\2\29\16\3\2\2\2:;\7\177\2")
|
||||
buf.write("u\3\2\2\2#$\7=\2\2$\4\3\2\2\2%&\7i\2\2&\'\7q\2\2\'\6\3")
|
||||
buf.write("\2\2\2()\7r\2\2)*\7c\2\2*+\7w\2\2+,\7u\2\2,-\7g\2\2-\b")
|
||||
buf.write("\3\2\2\2./\7y\2\2/\60\7c\2\2\60\61\7k\2\2\61\62\7v\2\2")
|
||||
buf.write("\62\n\3\2\2\2\63\64\7r\2\2\64\65\7c\2\2\65\66\7u\2\2\66")
|
||||
buf.write("\67\7u\2\2\67\f\3\2\2\289\7}\2\29\16\3\2\2\2:;\7\177\2")
|
||||
buf.write("\2;\20\3\2\2\2<@\t\2\2\2=?\t\3\2\2>=\3\2\2\2?B\3\2\2\2")
|
||||
buf.write("@>\3\2\2\2@A\3\2\2\2A\22\3\2\2\2B@\3\2\2\2CE\5\27\f\2")
|
||||
buf.write("DC\3\2\2\2EF\3\2\2\2FD\3\2\2\2FG\3\2\2\2GN\3\2\2\2HJ\7")
|
||||
|
@ -78,7 +78,7 @@ class ArmControlLexer(Lexer):
|
|||
modeNames = [ "DEFAULT_MODE" ]
|
||||
|
||||
literalNames = [ "<INVALID>",
|
||||
"';'", "'GO'", "'PAUSE'", "'WAIT'", "'PASS'", "'{'", "'}'",
|
||||
"';'", "'go'", "'pause'", "'wait'", "'pass'", "'{'", "'}'",
|
||||
"','" ]
|
||||
|
||||
symbolicNames = [ "<INVALID>",
|
||||
|
|
|
@ -50,7 +50,7 @@ class ArmControlParser ( Parser ):
|
|||
|
||||
sharedContextCache = PredictionContextCache()
|
||||
|
||||
literalNames = [ "<INVALID>", "';'", "'GO'", "'PAUSE'", "'WAIT'", "'PASS'",
|
||||
literalNames = [ "<INVALID>", "';'", "'go'", "'pause'", "'wait'", "'pass'",
|
||||
"'{'", "'}'", "<INVALID>", "<INVALID>", "<INVALID>",
|
||||
"','" ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue