pass
-class NotEq(Token):
+class Ne(Token):
r"""(?:≠|!=)"""
pass
comparison = (
pc_ast.Lt, pc_ast.Le,
- pc_ast.Eq, pc_ast.NotEq,
+ pc_ast.Eq, pc_ast.Ne,
pc_ast.Ge, pc_ast.Gt,
pc_ast.LtU, pc_ast.GtU,
)
pc_ast.Not, pc_ast.Add, pc_ast.Sub,
pc_ast.Mul, pc_ast.Div, pc_ast.Mod,
pc_ast.Lt, pc_ast.Le,
- pc_ast.Eq, pc_ast.NotEq,
+ pc_ast.Eq, pc_ast.Ne,
pc_ast.Ge, pc_ast.Gt,
pc_ast.LtU, pc_ast.GtU,
pc_ast.LShift, pc_ast.RShift,
pc_ast.Lt: "oppc_lt",
pc_ast.Le: "oppc_le",
pc_ast.Eq: "oppc_eq",
+ pc_ast.Ne: "oppc_ne",
pc_ast.LtU: "oppc_ltu",
pc_ast.GtU: "oppc_gtu",
- pc_ast.NotEq: "oppc_noteq",
pc_ast.Ge: "oppc_ge",
pc_ast.Gt: "oppc_gt",
pc_ast.LShift: "oppc_lshift",
t_ASSIGN = pc_ast.AssignOp.__doc__
t_LTU = pc_ast.LtU.__doc__
t_GTU = pc_ast.GtU.__doc__
- t_NE = pc_ast.NotEq.__doc__
+ t_NE = pc_ast.Ne.__doc__
t_LE = pc_ast.Le.__doc__
t_GE = pc_ast.Ge.__doc__
t_LSHIFT = pc_ast.LShift.__doc__
"ASSIGN": pc_ast.AssignOp,
"LTU": pc_ast.LtU,
"GTU": pc_ast.GtU,
- "NE": pc_ast.NotEq,
+ "NE": pc_ast.Ne,
"LE": pc_ast.Le,
"GE": pc_ast.Ge,
"LSHIFT": pc_ast.LShift,
"<": pc_ast.Lt,
">": pc_ast.Gt,
"=": pc_ast.Eq,
- "!=": pc_ast.NotEq,
+ "!=": pc_ast.Ne,
}
unary_ops = {
"+": pc_ast.Plus,
pc_ast.Mul, pc_ast.MulS, pc_ast.MulU,
pc_ast.Div, pc_ast.DivT, pc_ast.Mod,
pc_ast.Sqrt,
- pc_ast.Eq, pc_ast.NotEq,
+ pc_ast.Eq, pc_ast.Ne,
pc_ast.Lt, pc_ast.Le, pc_ast.LtU,
pc_ast.Gt, pc_ast.Ge, pc_ast.GtU,
pc_ast.LShift, pc_ast.RShift,
pc_ast.Mod: "%",
pc_ast.Sqrt: "√",
pc_ast.Eq: "=",
- pc_ast.NotEq: "!=",
+ pc_ast.Ne: "!=",
pc_ast.Lt: "<",
pc_ast.Le: "<=",
pc_ast.LtU: "<u",