1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Updated gdscript (markdown)

okamstudio
2014-02-24 04:02:55 -08:00
parent 76774999f6
commit d40dcc4cfd

@@ -104,35 +104,35 @@ The following is the list of keywords supported by the language. Since keywords
The following is the list of supported operators and their precedence (TODO, change since this was made to reflect python operators) The following is the list of supported operators and their precedence (TODO, change since this was made to reflect python operators)
| Operator | Description | | Operator | Description |
| -------- | ----------- | | -------- | ----------- |
| `x[index]` | Subscription, Highest Priority | | `x[index]` | Subscription, Highest Priority |
| x.attribute | Attribute Reference | | x.attribute | Attribute Reference |
| extends | Instance Type Checker | | extends | Instance Type Checker |
| `~` | Bitwise NOT | | `~` | Bitwise NOT |
| -x | Negative | | -x | Negative |
| * / % | Mult / Div / Remainder | | * / % | Mult / Div / Remainder |
| + - | Addition / Substraction | | + - | Addition / Substraction |
| `<< >>` | Bit Shifting | | `<< >>` | Bit Shifting |
| & | Bitwise AND | | & | Bitwise AND |
| `^` | Bitwise XOR | | `^` | Bitwise XOR |
| ` | ` | Bitwise OR | | ` | ` | Bitwise OR |
| `< > == != >= <=` | Comparisons | | `< > == != >= <=` | Comparisons |
| in | Content Test | in | Content Test |
| `! not` | Boolean NOT | | `! not` | Boolean NOT |
| and && | Boolean AND | | and && | Boolean AND |
| or ` | | ` | Boolean OR | | or `||` | Boolean OR |
| `= += -= *= /= %= &= | =` | Assignment, Lowest Priority | | `= += -= *= /= %= &= | =` | Assignment, Lowest Priority |
## Literals ## Literals
| Literal | Name | | Literal | Name |
| ------- | ---- | | ------- | ---- |
| 45 | Base 10 Integer | | 45 | Base 10 Integer |
| 0x8F51 | Base 16 (hex) Integer | | 0x8F51 | Base 16 (hex) Integer |
| 3.14, 58.1e-10 | Floating Point Number (real) | | 3.14, 58.1e-10 | Floating Point Number (real) |
| Hello, “Hi” | Strings | | Hello, “Hi” | Strings |
| @"Node/Label" | Node Path or StringName | | @"Node/Label" | Node Path or StringName |
## Comments ## Comments