Enum carlotk::Expression
source · pub enum Expression {
Assignment {
left: String,
right: Box<Expression>,
},
Reassignment {
left: String,
right: Box<Expression>,
},
Float {
value: f64,
kg: f64,
m: f64,
s: f64,
},
Identifier(String),
BinOp {
left: Box<Expression>,
oper: BinaryOperation,
right: Box<Expression>,
},
}Expand description
Enumerates the expression available to the Carlo parser.
Variants§
Assignment
Assignment
Reassignment
Reassignment
Float
64-bit dimensioned floating-point
Identifier(String)
Identifier
BinOp
Binary operation
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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