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,26 +1,7 @@
use crate::table::{Table, TableOwner};
mod builtin;
mod path;
mod table;
mod values;
mod value;
fn main() {
println!("Hello, world!");
let table_owner = TableOwner::new();
let table = Table::new(&table_owner);
table.insert("Hello".into(), "World".into());
table.insert(1.into(), "Goodbye".into());
dbg!(&table);
table.remove(&0.into());
table.remove(&1.into());
table.remove(&2.into());
dbg!(&table);
table.insert(true.into(), table.clone().into());
dbg!(&table);
}