mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 17:35:03 +01:00
add garbage collection
This commit is contained in:
parent
68a91a7b44
commit
555aa21cc4
1 changed files with 5 additions and 4 deletions
|
|
@ -1,12 +1,13 @@
|
|||
use std::collections::HashMap;
|
||||
use std::rc::Rc;
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Hash)]
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
enum Value {
|
||||
Null,
|
||||
Bool(bool),
|
||||
Number(f64),
|
||||
String(String),
|
||||
Object(HashMap<String, Value>),
|
||||
Array(Vec<Value>),
|
||||
String(Rc<String>),
|
||||
Object(Rc<HashMap<String, Value>>),
|
||||
Array(Rc<Vec<Value>>),
|
||||
Fn(Rc<()>),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue