Derive hash for AST types
diff --git a/src/op.rs b/src/op.rs
index ffe181f..d4b0bc7 100644
--- a/src/op.rs
+++ b/src/op.rs
@@ -1,4 +1,4 @@
-#[derive(Debug, Copy, Clone, Eq, PartialEq)]
+#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
 pub enum BinOp {
     /// The `+` operator (addition)
     Add,
@@ -38,7 +38,7 @@
     Gt,
 }
 
-#[derive(Debug, Copy, Clone, Eq, PartialEq)]
+#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
 pub enum UnOp {
     /// The `*` operator for dereferencing
     Deref,