This commit is contained in:
Erin 2022-08-05 23:52:56 +02:00 committed by ondra05
parent c3c8c23956
commit cbf7fde8e1
2 changed files with 1 additions and 5 deletions

View file

@ -1,2 +0,0 @@
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct List;

View file

@ -1,9 +1,7 @@
mod function; mod function;
mod list;
mod string; mod string;
pub use function::Function; pub use function::Function;
pub use list::List;
pub use string::Str; pub use string::Str;
use std::{collections::BTreeMap, rc::Rc}; use std::{collections::BTreeMap, rc::Rc};
@ -12,7 +10,7 @@ pub type OrderedF64 = ordered_float::OrderedFloat<f64>;
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum Value<'s> { pub enum Value<'s> {
List(List), List(/* TODO: List impl (or dotted pair) */),
Vector(Rc<Vec<Self>>), Vector(Rc<Vec<Self>>),
Map(Rc<BTreeMap<Self, Self>>), Map(Rc<BTreeMap<Self, Self>>),
Symbol(Str<'s>), Symbol(Str<'s>),