Remove stuff
Preparing for a very simple parser.
This commit is contained in:
parent
f42aec4132
commit
fafb58adfa
7 changed files with 49 additions and 152 deletions
12
src/table.rs
12
src/table.rs
|
|
@ -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>>>);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue