You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
969 B
Plaintext

// ### Arithmetic
// |Operator|Description|
// |--------|-----------|
// |`+` |addition |
// |`-` |subtraction|
// |`*` |multiplication|
// |`/` |quotient |
// |`%` |remainder |
// |`&` |bitwise and|
// |`|` |bitwise or |
// |`^` |bitwise xor|
// |`&^` |bit clear (and not)|
// |`<<` |left shift |
// |`>>` |right shift|
//
// ### Comparison
// |Operator|Description|
// |--------|-----------|
// |`==` |equal |
// |`!=` |not equal |
// |`<` |less than |
// |`<=` |less than or equal|
// |`>` |greater than|
// |`>=` |greater than or equal|
//
// ### Logical
// |Operator|Description|
// |--------|-----------|
// |`&&` |logical and|
// |`||` |logical or |
// |`!` |logical not|
//
// ### Other
// |Operator|Description|
// |--------|-----------|
// |`&` |address of / create pointer|
// |`*` |dereference pointer|
// |`<-` |send / receive operator (see 'Channels' below)|