Skip to content

Commit

Permalink
Update syntax samples/tests for #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Antyos committed Aug 20, 2021
1 parent 18d88f6 commit 0ebee73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/jump_conditions.mlog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
jump -1 equal x 100
jump -1 notEqual x 100
jump -1 strictEqual x 100
jump -1 lessThan x 100
jump -1 lessThanEq x 100
jump -1 greaterThan x 100
Expand Down
9 changes: 7 additions & 2 deletions test/operations.mlog
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ op mod result a b
op pow result a b
op equal result a b
op notEqual result a b
op strictEqual result a b
op land result a b # Logical and
op lessThan result a b
op lessThanEq result a b
Expand All @@ -20,8 +21,8 @@ op xor result a b # bitwise XOR
op not result a 0 # Single arg; Bitwise NOT
op max result a b
op min result a b
op atan2 result a b
op dst result a b
op angle result a b
op len result a b
op noise result a b
op abs result a 0 # Single arg
op log result a 0 # Single arg
Expand All @@ -33,3 +34,7 @@ op floor result a 0 # Single arg
op ceil result a 0 # Single arg
op sqrt result a 0 # Single arg
op rand result a 0 # Single arg

# Deprecated
op atan2 result a b
op dst result a b
4 changes: 3 additions & 1 deletion test/sample.mlog
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ ubind @poly
ucontrol move 0 0 0 0 0
uradar enemy any any distance turret1 1 result
ulocate building core true @copper outx outy found building
# This is a comment
wait 0.5
lookup block result 0
# This is a comment

0 comments on commit 0ebee73

Please sign in to comment.