Added the Boolean XOR Operator

This commit is contained in:
Kyler 2024-02-27 22:12:26 -07:00
parent 967f22e797
commit e9247d686f
2 changed files with 9 additions and 6 deletions

View File

@ -165,10 +165,10 @@ Escape Codes
* / % ~ & | * / % ~ & |
^ << >> = += -= ^ << >> = += -=
*= /= %= &= |= ^= *= /= %= &= |= ^=
<<= >>= ! && || == <<= >>= ! && || ^^
!= < <= > >= ? == != < <= > >=
{ } [ ] ( ) { } [ ] ( )
. -> , ; : ? . -> , ; :
``` ```
### Syntax ### Syntax
@ -368,6 +368,7 @@ An `enclosed expression` is simply an `expression` enclosed in parentheses
| `>>=` | Right Shift Assignment *Operator* | | `>>=` | Right Shift Assignment *Operator* |
| `&&` | Boolean AND *Operator* | | `&&` | Boolean AND *Operator* |
| `\|\|` | Boolean OR *Operator* | | `\|\|` | Boolean OR *Operator* |
| `^^` | Boolean XOR *Operator* |
| `==` | Equality Comparison *Operator* | | `==` | Equality Comparison *Operator* |
| `!=` | Inequality Comparison *Operator* | | `!=` | Inequality Comparison *Operator* |
| `<` | Less Than *Operator* | | `<` | Less Than *Operator* |
@ -406,6 +407,7 @@ Here are all operators and their types and names.
| `<` | Binary | Less Than *Operator* | | `<` | Binary | Less Than *Operator* |
| `!=` | Binary | Inequality Comparison *Operator* | | `!=` | Binary | Inequality Comparison *Operator* |
| `==` | Binary | Equality Comparison *Operator* | | `==` | Binary | Equality Comparison *Operator* |
| `^^` | Binary | Boolean XOR *Operator* |
| `\|\|` | Binary | Boolean OR *Operator* | | `\|\|` | Binary | Boolean OR *Operator* |
| `&&` | Binary | Boolean AND *Operator* | | `&&` | Binary | Boolean AND *Operator* |
| `>>=` | Binary | Right Shift Assignment *Operator* | | `>>=` | Binary | Right Shift Assignment *Operator* |
@ -438,6 +440,7 @@ by the syntactical analyzer:
| `>>=` | Right Shift Assignment *Operator* | | `>>=` | Right Shift Assignment *Operator* |
| `&&` | Boolean AND *Operator* | | `&&` | Boolean AND *Operator* |
| `\|\|` | Boolean OR *Operator* | | `\|\|` | Boolean OR *Operator* |
| `^^` | Boolean XOR *Operator* |
| `==` | Equality Comparison *Operator* | | `==` | Equality Comparison *Operator* |
| `!=` | Inequality Comparison *Operator* | | `!=` | Inequality Comparison *Operator* |
| `<` | Less Than *Operator* | | `<` | Less Than *Operator* |

View File

@ -120,10 +120,10 @@ _Punctuation = (
"*", "/", "%", "~", "&", "|", "*", "/", "%", "~", "&", "|",
"^", "<<", ">>", "=", "+=", "-=", "^", "<<", ">>", "=", "+=", "-=",
"*=", "/=", "%=", "&=", "|=", "^=", "*=", "/=", "%=", "&=", "|=", "^=",
"<<=", ">>=", "!", "&&", "||", "==", "<<=", ">>=", "!", "&&", "||", "^^",
"!=", "<", "<=", ">", ">=", "?", "==", "!=", "<", "<=", ">", ">=",
"{", "}", "[", "]", "(", ")", "{", "}", "[", "]", "(", ")",
".", "->", ",", ";", ":", "?", ".", "->", ",", ";", ":",
) )