aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xixanta/src/node.rs')
-rw-r--r--lib/xixanta/src/node.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs
index 04655cb..a31c578 100644
--- a/lib/xixanta/src/node.rs
+++ b/lib/xixanta/src/node.rs
@@ -197,13 +197,22 @@ pub enum OperationType {
Lshift,
Rshift,
And,
+ LogicalAnd,
Or,
+ LogicalOr,
Xor,
UnaryPositive,
UnaryNegative,
BitwiseNot,
+ LogicalNot,
LoByte,
HiByte,
+ Equal,
+ NotEqual,
+ LessEqual,
+ GreaterEqual,
+ Less,
+ Greater,
}
/// The PNode type.
@@ -278,13 +287,22 @@ impl fmt::Display for NodeType {
OperationType::Lshift => write!(f, "left shift"),
OperationType::Rshift => write!(f, "right shift"),
OperationType::And => write!(f, "bitwise and"),
+ OperationType::LogicalAnd => write!(f, "logical and"),
OperationType::Or => write!(f, "bitwise or"),
+ OperationType::LogicalOr => write!(f, "logical or"),
OperationType::Xor => write!(f, "bitwise xor"),
OperationType::UnaryPositive => write!(f, "unary positive"),
OperationType::UnaryNegative => write!(f, "unary negative"),
OperationType::BitwiseNot => write!(f, "bitwise not"),
+ OperationType::LogicalNot => write!(f, "logical not"),
OperationType::LoByte => write!(f, "low byte"),
OperationType::HiByte => write!(f, "high byte"),
+ OperationType::Equal => write!(f, "equal"),
+ OperationType::NotEqual => write!(f, "not equal"),
+ OperationType::LessEqual => write!(f, "less or equal"),
+ OperationType::GreaterEqual => write!(f, "greater or equal"),
+ OperationType::Less => write!(f, "less"),
+ OperationType::Greater => write!(f, "greater"),
},
}
}