bitwise operators and boolean operators
This commit is contained in:
@@ -24,10 +24,31 @@ const (
|
||||
ASSIGN = "="
|
||||
PLUS = "+"
|
||||
MINUS = "-"
|
||||
BANG = "!"
|
||||
ASTERISK = "*"
|
||||
SLASH = "/"
|
||||
PERCENT = "%"
|
||||
MULTIPLY = "*"
|
||||
DIVIDE = "/"
|
||||
MODULO = "%"
|
||||
|
||||
// Bitwise / Logical operators
|
||||
|
||||
// BITWISE_AND AND
|
||||
BITWISE_AND = "&"
|
||||
// BITWISE_OR OR
|
||||
BITWISE_OR = "|"
|
||||
// BITWISE_XOR XOR
|
||||
BITWISE_XOR = "^"
|
||||
// BITWISE_NOT NOT
|
||||
BITWISE_NOT = "~"
|
||||
|
||||
//
|
||||
// Comparision operators
|
||||
//
|
||||
|
||||
// NOT the not operator
|
||||
NOT = "!"
|
||||
// AND the and operator
|
||||
AND = "&&"
|
||||
// OR the or operator
|
||||
OR = "||"
|
||||
|
||||
LT = "<"
|
||||
LTE = "<="
|
||||
|
||||
Reference in New Issue
Block a user