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
21
src/main.rs
21
src/main.rs
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue