File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ TRY:'try';
74
74
STORE :' store' ;
75
75
AS :' as' ;
76
76
FROM :' from' ;
77
+ EXECUTE :' execute' ;
77
78
78
79
BREAK :' break' ;
79
80
CONTINUE :' continue' ;
@@ -191,6 +192,11 @@ FloatConstant
191
192
| FractionalConstant ExponentPart? NBTFloatSuffix?
192
193
;
193
194
195
+ RelativeValue
196
+ : ' ~' IntegerConstant
197
+ | ' ~' FloatConstant
198
+ ;
199
+
194
200
BooleanConstant
195
201
: ' true'
196
202
| ' false'
Original file line number Diff line number Diff line change @@ -407,6 +407,15 @@ statement
407
407
| controlStatement ' ;'
408
408
| orgCommand
409
409
| returnStatement ' ;'
410
+ | executeStatement
411
+ ;
412
+
413
+ executeStatement
414
+ : EXECUTE ' (' executeContext (' ,' executeContext)* ' )' block
415
+ ;
416
+
417
+ executeContext
418
+ : varWithSelector ' =' expression
410
419
;
411
420
412
421
orgCommand
@@ -526,6 +535,7 @@ functionReturnType
526
535
value
527
536
: intValue
528
537
| floatValue
538
+ | RelativeValue
529
539
| LineString
530
540
| boolValue
531
541
| multiLineStringLiteral
You can’t perform that action at this time.
0 commit comments