Skip to content

Commit

Permalink
More forms of extensional equality
Browse files Browse the repository at this point in the history
  • Loading branch information
parno committed Dec 19, 2024
1 parent 97b8d77 commit 42eca32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/syntax/src/ast/expr_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ impl ast::BinExpr {
T![<==]=> BinaryOp::LogicOp(LogicOp::RevImply),

T![==] => BinaryOp::CmpOp(CmpOp::Eq { negated: false }),
T![=~=] | T![=~~=] | T![===] => BinaryOp::CmpOp(CmpOp::Eq { negated: false }), // verus: TODO: Do we need a separate operator for extensional equality?
T![!=] => BinaryOp::CmpOp(CmpOp::Eq { negated: true }),
T![<=] => BinaryOp::CmpOp(CmpOp::Ord { ordering: Ordering::Less, strict: false }),
T![>=] => BinaryOp::CmpOp(CmpOp::Ord { ordering: Ordering::Greater, strict: false }),
Expand Down

0 comments on commit 42eca32

Please sign in to comment.