typescript_ast/ast/value.rs
1use std::sync::Arc;
2
3use super::operation::Operation;
4
5
6#[derive(Debug)]
7pub enum Value {
8 Number(f64),
9 String(String),
10 Identifier(Vec<String>),
11 Boolean(bool),
12 Call{identifier: Vec<String>, args: Vec<Arc<Value>>},
13 Null,
14 Undefined,
15 Expression{left: Arc<Value>, op: Operation, right: Arc<Value>},
16}