From d40dcc4cfd0a30da5a7188c603bba56407c3f947 Mon Sep 17 00:00:00 2001 From: okamstudio Date: Mon, 24 Feb 2014 04:02:55 -0800 Subject: [PATCH] Updated gdscript (markdown) --- gdscript.md | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/gdscript.md b/gdscript.md index 1a1abbd..22ab26e 100644 --- a/gdscript.md +++ b/gdscript.md @@ -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) - | Operator | Description | - | -------- | ----------- | - | `x[index]` | Subscription, Highest Priority | - | x.attribute | Attribute Reference | - | extends | Instance Type Checker | - | `~` | Bitwise NOT | - | -x | Negative | - | * / % | Mult / Div / Remainder | - | + - | Addition / Substraction | - | `<< >>` | Bit Shifting | - | & | Bitwise AND | - | `^` | Bitwise XOR | - | ` | ` | Bitwise OR | - | `< > == != >= <=` | Comparisons | - | in | Content Test | - | `! not` | Boolean NOT | - | and && | Boolean AND | - | or ` | | ` | Boolean OR | - | `= += -= *= /= %= &= | =` | Assignment, Lowest Priority | +| Operator | Description | +| -------- | ----------- | +| `x[index]` | Subscription, Highest Priority | +| x.attribute | Attribute Reference | +| extends | Instance Type Checker | +| `~` | Bitwise NOT | +| -x | Negative | +| * / % | Mult / Div / Remainder | +| + - | Addition / Substraction | +| `<< >>` | Bit Shifting | +| & | Bitwise AND | +| `^` | Bitwise XOR | +| ` | ` | Bitwise OR | +| `< > == != >= <=` | Comparisons | + in | Content Test | +| `! not` | Boolean NOT | +| and && | Boolean AND | +| or `||` | Boolean OR | +| `= += -= *= /= %= &= | =` | Assignment, Lowest Priority | ## Literals - | Literal | Name | - | ------- | ---- | - | 45 | Base 10 Integer | - | 0x8F51 | Base 16 (hex) Integer | - | 3.14, 58.1e-10 | Floating Point Number (real) | - | ’Hello’, “Hi” | Strings | - | @"Node/Label" | Node Path or StringName | +| Literal | Name | +| ------- | ---- | +| 45 | Base 10 Integer | +| 0x8F51 | Base 16 (hex) Integer | +| 3.14, 58.1e-10 | Floating Point Number (real) | +| ’Hello’, “Hi” | Strings | +| @"Node/Label" | Node Path or StringName | ## Comments