Enum fomoscript::N
source · pub enum N {
Show 13 variants
FuncCall {
func: NI,
args: Vec<NI>,
},
Block(Vec<NI>),
If {
condition: NI,
path_true: NI,
path_false: NI,
},
While {
condition: NI,
body: NI,
},
Set {
name: String,
val: NI,
},
Get {
name: String,
},
Binary {
op: BinaryOp,
l: NI,
r: NI,
},
FuncDef {
args_name: Vec<String>,
scope: Vec<NI>,
},
FuncNativeDef(Native),
Array(Vec<NI>),
Num(f64),
Str(String),
Unit,
}Expand description
fomoscript AST node
Variants§
FuncCall
Block(Vec<NI>)
If
While
Set
Get
Binary
FuncDef
FuncNativeDef(Native)
Array(Vec<NI>)
Num(f64)
Str(String)
Unit
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for N
impl !Send for N
impl !Sync for N
impl Unpin for N
impl !UnwindSafe for N
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more