From 1527d10a80a0ff182a250c888b6688bbc38bff53 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 29 Dec 2016 12:36:22 -0500 Subject: [PATCH] Shuffle around Constant node stuff --- src/parser/nodes/mod.rs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/parser/nodes/mod.rs b/src/parser/nodes/mod.rs index 93c4f63..ad2ba69 100644 --- a/src/parser/nodes/mod.rs +++ b/src/parser/nodes/mod.rs @@ -1,19 +1,7 @@ -/* node.rs +/* parser/nodes/mod.rs * Eryn Wells */ -use types::{Boolean, Number}; +pub use self::constant::Constant; -trait ConstantValue {} -impl ConstantValue for Boolean {} -impl ConstantValue for Number {} - -struct Constant { - value: V -} - -impl Constant { - fn new(value: V) -> Constant { - Constant { value: value } - } -} +mod constant;