mirror of
https://github.com/irmen/prog8.git
synced 2026-04-21 02:16:41 +00:00
"not" operator removed from ast and codegen (it's been replaced with x==0 as equivalent)
This commit is contained in:
@@ -3,7 +3,7 @@ package prog8.code.core
|
||||
val AssociativeOperators = setOf("+", "*", "&", "|", "^", "or", "and", "xor", "==", "!=")
|
||||
val ComparisonOperators = setOf("==", "!=", "<", ">", "<=", ">=")
|
||||
val AugmentAssignmentOperators = setOf("+", "-", "/", "*", "&", "|", "^", "<<", ">>", "%", "and", "or", "xor")
|
||||
val LogicalOperators = setOf("and", "or", "xor", "not")
|
||||
val LogicalOperators = setOf("and", "or", "xor") // not x is replaced with x==0
|
||||
val BitwiseOperators = setOf("&", "|", "^")
|
||||
|
||||
fun invertedComparisonOperator(operator: String) =
|
||||
|
||||
Reference in New Issue
Block a user