Add reserved symbols.
This commit is contained in:
@@ -110,5 +110,5 @@ The Rhai Scripting Language
|
||||
7. [Eval Statement](language/eval.md)
|
||||
9. [Appendix](appendix/index.md)
|
||||
1. [Keywords](appendix/keywords.md)
|
||||
2. [Operators](appendix/operators.md)
|
||||
2. [Operators and Symbols](appendix/operators.md)
|
||||
3. [Literals](appendix/literals.md)
|
||||
|
@@ -1,8 +1,12 @@
|
||||
Operators
|
||||
=========
|
||||
Operators and Symbols
|
||||
====================
|
||||
|
||||
{{#include ../links.md}}
|
||||
|
||||
|
||||
Operators
|
||||
---------
|
||||
|
||||
| Operator | Description | Binary? | Binding direction |
|
||||
| :---------------: | ------------------------------ | :-----: | :---------------: |
|
||||
| `+` | Add | Yes | Left |
|
||||
@@ -28,3 +32,21 @@ Operators
|
||||
| `!` | Boolean _Not_ | No | Left |
|
||||
| `[` .. `]` | Indexing | Yes | Right |
|
||||
| `.` | Property access, Method call | Yes | Right |
|
||||
|
||||
|
||||
Symbols
|
||||
-------
|
||||
|
||||
| Symbol | Description |
|
||||
| ------------ | ------------------------ |
|
||||
| `:` | Property value separator |
|
||||
| `::` | Module path separator |
|
||||
| `=>` | _Reserved_ |
|
||||
| `->` | _Reserved_ |
|
||||
| `<-` | _Reserved_ |
|
||||
| `===` | _Reserved_ |
|
||||
| `!==` | _Reserved_ |
|
||||
| `:=` | _Reserved_ |
|
||||
| `::<` .. `>` | _Reserved_ |
|
||||
| `@` | _Reserved_ |
|
||||
| `(*` .. `*)` | _Reserved_ |
|
||||
|
Reference in New Issue
Block a user