Struct semantic_analyzer::types::SemanticStack
source · pub struct SemanticStack(/* private fields */);Implementations§
source§impl SemanticStack
impl SemanticStack
pub fn new() -> Self
pub fn push(&mut self, value: SemanticStackContext)
pub fn get(self) -> Vec<SemanticStackContext>
pub fn expression_value(&mut self, expression: Value)
pub fn expression_const(&mut self, expression: Constant)
pub fn expression_struct_value(&mut self, expression: Value, index: u32)
pub fn expression_operation( &mut self, operation: ExpressionOperations, left_value: ExpressionResult, right_value: ExpressionResult )
pub fn call(&mut self, call: Function, params: Vec<ExpressionResult>)
pub fn let_binding(&mut self, let_decl: Value, expr_result: ExpressionResult)
pub fn binding(&mut self, val: Value, expr_result: ExpressionResult)
pub fn function_declaration(&mut self, fn_decl: FunctionStatement)
pub fn constant(&mut self, const_decl: Constant)
pub fn types(&mut self, type_decl: StructTypes)
pub fn expression_function_return(&mut self, expr_result: ExpressionResult)
pub fn expression_function_return_with_label( &mut self, expr_result: ExpressionResult )
pub fn set_label(&mut self, label: LabelName)
pub fn jump_to(&mut self, label: LabelName)
pub fn if_condition_expression( &mut self, expr_result: ExpressionResult, label_if_begin: LabelName, label_if_end: LabelName )
pub fn condition_expression( &mut self, left_result: ExpressionResult, right_result: ExpressionResult, condition: Condition )
pub fn jump_function_return(&mut self, expr_result: ExpressionResult)
pub fn logic_condition( &mut self, left_condition_register: u64, right_condition_register: u64, logic_condition: LogicCondition )
pub fn if_condition_logic( &mut self, label_if_begin: LabelName, label_if_end: LabelName )
Trait Implementations§
source§impl Clone for SemanticStack
impl Clone for SemanticStack
source§fn clone(&self) -> SemanticStack
fn clone(&self) -> SemanticStack
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 SemanticStack
impl Debug for SemanticStack
source§impl Default for SemanticStack
impl Default for SemanticStack
source§fn default() -> SemanticStack
fn default() -> SemanticStack
Returns the “default value” for a type. Read more
source§impl PartialEq<SemanticStack> for SemanticStack
impl PartialEq<SemanticStack> for SemanticStack
source§fn eq(&self, other: &SemanticStack) -> bool
fn eq(&self, other: &SemanticStack) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SemanticStack
Auto Trait Implementations§
impl RefUnwindSafe for SemanticStack
impl Send for SemanticStack
impl Sync for SemanticStack
impl Unpin for SemanticStack
impl UnwindSafe for SemanticStack
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