pub enum SemanticStackContext {
Show 19 variants
ExpressionValue {
expression: Value,
},
ExpressionConst {
expression: Constant,
},
ExpressionStructValue {
expression: Value,
index: u32,
},
ExpressionOperation {
operation: ExpressionOperations,
left_value: ExpressionResult,
right_value: ExpressionResult,
},
Call {
call: Function,
params: Vec<ExpressionResult>,
},
LetBinding {
let_decl: Value,
expr_result: ExpressionResult,
},
Binding {
val: Value,
expr_result: ExpressionResult,
},
FunctionDeclaration {
fn_decl: FunctionStatement,
},
Constant {
const_decl: Constant,
},
Types {
type_decl: StructTypes,
},
ExpressionFunctionReturn {
expr_result: ExpressionResult,
},
ExpressionFunctionReturnWithLabel {
expr_result: ExpressionResult,
},
SetLabel {
label: LabelName,
},
JumpTo {
label: LabelName,
},
IfConditionExpression {
expr_result: ExpressionResult,
label_if_begin: LabelName,
label_if_end: LabelName,
},
ConditionExpression {
left_result: ExpressionResult,
right_result: ExpressionResult,
condition: Condition,
},
JumpFunctionReturn {
expr_result: ExpressionResult,
},
LogicCondition {
left_condition_register: u64,
right_condition_register: u64,
logic_condition: LogicCondition,
},
IfConditionLogic {
label_if_begin: LabelName,
label_if_end: LabelName,
},
}Variants§
ExpressionValue
ExpressionConst
ExpressionStructValue
ExpressionOperation
Call
LetBinding
Binding
FunctionDeclaration
Fields
§
fn_decl: FunctionStatementConstant
Types
Fields
§
type_decl: StructTypesExpressionFunctionReturn
Fields
§
expr_result: ExpressionResultExpressionFunctionReturnWithLabel
Fields
§
expr_result: ExpressionResultSetLabel
JumpTo
IfConditionExpression
ConditionExpression
JumpFunctionReturn
Fields
§
expr_result: ExpressionResultLogicCondition
IfConditionLogic
Trait Implementations§
source§impl Clone for SemanticStackContext
impl Clone for SemanticStackContext
source§fn clone(&self) -> SemanticStackContext
fn clone(&self) -> SemanticStackContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SemanticStackContext
impl Debug for SemanticStackContext
source§impl PartialEq<SemanticStackContext> for SemanticStackContext
impl PartialEq<SemanticStackContext> for SemanticStackContext
source§fn eq(&self, other: &SemanticStackContext) -> bool
fn eq(&self, other: &SemanticStackContext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SemanticStackContext
Auto Trait Implementations§
impl RefUnwindSafe for SemanticStackContext
impl Send for SemanticStackContext
impl Sync for SemanticStackContext
impl Unpin for SemanticStackContext
impl UnwindSafe for SemanticStackContext
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