pub enum Expr {
Show 20 variants
IntLiteral(i32),
LongLiteral(i64),
StringLiteral(String),
BoolLiteral(bool),
NullLiteral,
CharLiteral(char),
CoordLiteral(i32),
Identifier(String),
LocalVar(String, usize),
GameVar(String, usize),
ConstantVar(String, usize),
ArrayAccess {
name: String,
index: Box<Expr>,
},
BinaryOp {
op: BinOp,
lhs: Box<Expr>,
rhs: Box<Expr>,
},
LogicalOp {
op: LogicOp,
lhs: Box<Expr>,
rhs: Box<Expr>,
rhs_line: usize,
},
Calc(Box<Expr>),
CommandCall {
name: String,
args: Vec<Expr>,
arg_lines: Vec<usize>,
call_line: usize,
},
ProcCall {
name: String,
args: Vec<Expr>,
arg_lines: Vec<usize>,
call_line: usize,
},
JumpCall {
name: String,
args: Vec<Expr>,
arg_lines: Vec<usize>,
call_line: usize,
},
JoinedString {
parts: Vec<StringPart>,
},
MultiAssign(Vec<Expr>, Vec<usize>),
}Variants§
IntLiteral(i32)
LongLiteral(i64)
StringLiteral(String)
BoolLiteral(bool)
NullLiteral
CharLiteral(char)
CoordLiteral(i32)
Identifier(String)
LocalVar(String, usize)
GameVar(String, usize)
ConstantVar(String, usize)
ArrayAccess
BinaryOp
LogicalOp
Fields
Calc(Box<Expr>)
CommandCall
Fields
ProcCall
Fields
JumpCall
Fields
JoinedString
Fields
§
parts: Vec<StringPart>MultiAssign(Vec<Expr>, Vec<usize>)
Multiple assignment targets: $a, $b = multi_return_call(…) Contains (targets, target_lines) for per-expression LineNumber emission.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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