Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
21
Task/Operator-precedence/Ring/operator-precedence.ring
Normal file
21
Task/Operator-precedence/Ring/operator-precedence.ring
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The next table present operators from higher precedence (Evaluated first) to lower precedence.
|
||||
|
||||
Operator
|
||||
. [] () {}
|
||||
- ~ :Literal [list items]
|
||||
++ - -
|
||||
Start:End
|
||||
* / %
|
||||
+ -
|
||||
<< >>
|
||||
&
|
||||
| ^
|
||||
< > <= >=
|
||||
= !=
|
||||
not
|
||||
and or
|
||||
Assignment = += -= *= /= %=>>= <<= &= ^= |=
|
||||
|
||||
Example:
|
||||
|
||||
See 3+5*4 # prints 23
|
||||
1
Task/Operator-precedence/Sidef/operator-precedence.sidef
Normal file
1
Task/Operator-precedence/Sidef/operator-precedence.sidef
Normal file
|
|
@ -0,0 +1 @@
|
|||
1+2 * 3+4 # means: (1+2) * (3+4)
|
||||
Loading…
Add table
Add a link
Reference in a new issue