Skip to content
Snippets Groups Projects
Commit c2b3d868 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

naming of eq/rel operators

parent edf38f26
No related branches found
No related tags found
1 merge request!375Support for Boolean Operations and Relations
Pipeline #64936 passed
......@@ -96,9 +96,9 @@ class Ops(Enum):
LeftShift = (7, LR.Left)
RightShift = (7, LR.Left)
IneqOp = (9, LR.Left)
RelOp = (9, LR.Left) # >=, >, <, <=
EqOp = (10, LR.Left)
EqOp = (10, LR.Left) # == and !=
BitwiseAnd = (11, LR.Left)
......@@ -373,12 +373,12 @@ class CAstPrinter:
case PsNe():
return ("!=", Ops.EqOp)
case PsGt():
return (">", Ops.IneqOp)
return (">", Ops.RelOp)
case PsGe():
return (">=", Ops.IneqOp)
return (">=", Ops.RelOp)
case PsLt():
return ("<", Ops.IneqOp)
return ("<", Ops.RelOp)
case PsLe():
return ("<=", Ops.IneqOp)
return ("<=", Ops.RelOp)
case _:
assert False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment