Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,7 +1,7 @@
|
|||
Table of operations priorities:
|
||||
|
||||
** 1 (highest)
|
||||
@, not, L , +, - (unary), new 2
|
||||
@, not, L , +, - (unary), new 2
|
||||
*, /, div, mod, and, shl, shr, as, is 3
|
||||
+, - (binary), or, xor 4
|
||||
.. 5
|
||||
|
|
|
|||
2
Task/Operator-precedence/Rye/operator-precedence-1.rye
Normal file
2
Task/Operator-precedence/Rye/operator-precedence-1.rye
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
;Regular word takes the first argument from the right
|
||||
Str: " Hello World"
|
||||
2
Task/Operator-precedence/Rye/operator-precedence-2.rye
Normal file
2
Task/Operator-precedence/Rye/operator-precedence-2.rye
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
;Dot-word left (immediate)
|
||||
10 .inc .inc ; returns 11
|
||||
2
Task/Operator-precedence/Rye/operator-precedence-3.rye
Normal file
2
Task/Operator-precedence/Rye/operator-precedence-3.rye
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
;Op-word Left-to-right
|
||||
10 + 5 * 6 ;returns 90
|
||||
2
Task/Operator-precedence/Rye/operator-precedence-4.rye
Normal file
2
Task/Operator-precedence/Rye/operator-precedence-4.rye
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
;Pipe-word left , after full evaluation of the left functions
|
||||
5 + 5 |add 10 ;5 + 5 evals first, then add 10
|
||||
4
Task/Operator-precedence/Rye/operator-precedence-5.rye
Normal file
4
Task/Operator-precedence/Rye/operator-precedence-5.rye
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
;More examples
|
||||
10 .inc - 10 .dec .dec ; returns 3
|
||||
"AB" .lower <concat> "bc" .upper ; returns abBC
|
||||
3 * 4 - 5 <string> <concat> " ravens" ; returns "7 ravens"
|
||||
Loading…
Add table
Add a link
Reference in a new issue