继续按 align-linuxcnc 约束:补表达式运算源码回归
This commit is contained in:
11
tests/gcode/linuxcnc_expression_operators.ngc
Normal file
11
tests/gcode/linuxcnc_expression_operators.ngc
Normal file
@@ -0,0 +1,11 @@
|
||||
G21 G90
|
||||
#1 = [-7 mod 5]
|
||||
#2 = [2 ** 3 * 2]
|
||||
#3 = [[1 and 0] or [0 xor 2]]
|
||||
#4 = [[1 lt 2] and [2 ge 2] and [3 ne 4] and [4 eq 4]]
|
||||
G0 X#1 Y#2 Z#3 A#4
|
||||
#5 = [7 + 3 * 2 ** 2]
|
||||
#6 = [[5 mod 2] + [-5 mod 2]]
|
||||
#7 = [[2 gt 3] or [3 le 3]]
|
||||
G0 B#5 C#6 U#7
|
||||
M2
|
||||
Reference in New Issue
Block a user