Remove stuff

Preparing for a very simple parser.
This commit is contained in:
Joscha 2021-09-28 23:32:48 +02:00
parent f42aec4132
commit fafb58adfa
7 changed files with 49 additions and 152 deletions

View file

@ -1,10 +1,20 @@
use std::cell::RefCell;
use std::collections::HashMap;
use std::convert::TryFrom;
use std::fmt::Debug;
use std::hash::{Hash, Hasher};
use std::rc::{Rc, Weak};
use crate::values::{Key, Value};
use crate::value::Value;
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum Key {
Bool(bool),
// Builtin(Builtin),
Int(i64),
String(Box<String>),
Table(Table),
}
pub struct TableOwner(Rc<RefCell<HashMap<Key, Value>>>);