pub enum AlephTree {
Show 43 variants
Unit,
Break,
Continue,
Ellipsis,
Int {
value: String,
},
Float {
value: String,
},
Bool {
value: String,
},
String {
value: String,
},
Ident {
value: String,
},
Bytes {
elems: Vec<u8>,
},
Complex {
real: String,
imag: String,
},
Tuple {
elems: Vec<Box<AlephTree>>,
},
Array {
elems: Vec<Box<AlephTree>>,
},
Neg {
expr: Box<AlephTree>,
},
Not {
bool_expr: Box<AlephTree>,
},
And {
bool_expr1: Box<AlephTree>,
bool_expr2: Box<AlephTree>,
},
Or {
bool_expr1: Box<AlephTree>,
bool_expr2: Box<AlephTree>,
},
Add {
number_expr1: Box<AlephTree>,
number_expr2: Box<AlephTree>,
},
Sub {
number_expr1: Box<AlephTree>,
number_expr2: Box<AlephTree>,
},
Mul {
number_expr1: Box<AlephTree>,
number_expr2: Box<AlephTree>,
},
Div {
number_expr1: Box<AlephTree>,
number_expr2: Box<AlephTree>,
},
Eq {
expr1: Box<AlephTree>,
expr2: Box<AlephTree>,
},
LE {
expr1: Box<AlephTree>,
expr2: Box<AlephTree>,
},
In {
expr1: Box<AlephTree>,
expr2: Box<AlephTree>,
},
If {
condition: Box<AlephTree>,
then: Box<AlephTree>,
els: Box<AlephTree>,
},
While {
init_expr: Box<AlephTree>,
condition: Box<AlephTree>,
loop_expr: Box<AlephTree>,
post_expr: Box<AlephTree>,
},
Let {
var: String,
is_pointer: String,
value: Box<AlephTree>,
expr: Box<AlephTree>,
},
LetRec {
name: String,
args: Vec<Box<AlephTree>>,
body: Box<AlephTree>,
},
Get {
array_name: String,
elem: Box<AlephTree>,
},
Put {
array_name: String,
elem: Box<AlephTree>,
value: Box<AlephTree>,
insert: String,
},
Remove {
array_name: String,
elem: Box<AlephTree>,
is_value: String,
},
Length {
var: String,
},
Match {
expr: Box<AlephTree>,
case_list: Vec<Box<AlephTree>>,
},
MatchLine {
condition: Box<AlephTree>,
case_expr: Box<AlephTree>,
},
Var {
var: String,
is_pointer: String,
},
App {
object_name: String,
fun: Box<AlephTree>,
param_list: Vec<Box<AlephTree>>,
},
Stmts {
expr1: Box<AlephTree>,
expr2: Box<AlephTree>,
},
Iprt {
name: String,
},
Clss {
name: String,
attribute_list: Vec<String>,
body: Box<AlephTree>,
},
Return {
value: Box<AlephTree>,
},
Comment {
value: String,
},
CommentMulti {
value: String,
},
Assert {
condition: Box<AlephTree>,
message: Box<AlephTree>,
},
}
Variants§
Unit
Break
Continue
Ellipsis
Int
Float
Bool
String
Ident
Bytes
Complex
Tuple
Array
Neg
Not
And
Or
Add
Sub
Mul
Div
Eq
LE
In
If
While
Fields
Let
LetRec
Get
Put
Remove
Length
Match
MatchLine
Var
App
Stmts
Iprt
Clss
Return
Comment
CommentMulti
Assert
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlephTree
impl<'de> Deserialize<'de> for AlephTree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AlephTree
Auto Trait Implementations§
impl Freeze for AlephTree
impl RefUnwindSafe for AlephTree
impl Send for AlephTree
impl Sync for AlephTree
impl Unpin for AlephTree
impl UnwindSafe for AlephTree
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