Shuffle around Constant node stuff

This commit is contained in:
Eryn Wells 2016-12-29 12:36:22 -05:00
parent 977e6332a7
commit 1527d10a80

View file

@ -1,19 +1,7 @@
/* node.rs
/* parser/nodes/mod.rs
* Eryn Wells <eryn@erynwells.me>
*/
use types::{Boolean, Number};
pub use self::constant::Constant;
trait ConstantValue {}
impl ConstantValue for Boolean {}
impl ConstantValue for Number {}
struct Constant<V: ConstantValue> {
value: V
}
impl<V: ConstantValue> Constant<V> {
fn new(value: V) -> Constant<V> {
Constant { value: value }
}
}
mod constant;