about summary refs log tree commit diff
path: root/src/parse/ast
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2021-10-23 00:38:57 +0200
committerMel <einebeere@gmail.com>2021-10-23 00:38:57 +0200
commit32a04f1e677cfa2b4f62a2c1db358588b78d593d (patch)
tree30d7735b0a05dbe9ae70a260fd303aec45b2e129 /src/parse/ast
parent94e31fd0c39e5f5dbccd4a3a290e7fe5f06fc4a0 (diff)
downloadrabbithole-32a04f1e677cfa2b4f62a2c1db358588b78d593d.tar.zst
rabbithole-32a04f1e677cfa2b4f62a2c1db358588b78d593d.zip
Remove Plus unary op and implement other unary ops
Diffstat (limited to 'src/parse/ast')
-rw-r--r--src/parse/ast/nodes.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/parse/ast/nodes.rs b/src/parse/ast/nodes.rs
index 36b15c8..822ffb6 100644
--- a/src/parse/ast/nodes.rs
+++ b/src/parse/ast/nodes.rs
@@ -42,7 +42,6 @@ impl BinaryOperator {
 
 #[derive(Debug, Clone, Copy)]
 pub enum UnaryOperator {
-    Plus,
     Minus,
     Not,
 }
@@ -50,7 +49,6 @@ pub enum UnaryOperator {
 impl UnaryOperator {
     pub fn from_token(token: Token) -> Self {
         match token.variant {
-            OpPlus => Self::Plus,
             OpMinus => Self::Minus,
             OpNot => Self::Not,
             _ => panic!("Can't create unary operator from '{:?}'.", token.variant),