pub struct MelInterp {}Implementations§
Source§impl MelInterp
impl MelInterp
pub fn interp_binary_expr( op: &BinaryInfixOperator, left: &TypedValue, right: &TypedValue, ) -> Result<TypedValue, Box<InterpError>>
Trait Implementations§
Source§impl AstVisitor<MelInterpContext, Analyzed, Box<InterpLocatableError>> for MelInterp
impl AstVisitor<MelInterpContext, Analyzed, Box<InterpLocatableError>> for MelInterp
fn visit_function_call( &self, ast: &FunctionCall<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_identifier( &self, ast: &Identifier<Analyzed>, context: MelInterpContext, _driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_argument_list( &self, ast: &ArgumentList<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_argument( &self, ast: &Argument<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_binary_expr( &self, ast: &BinaryExpr<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_literal( &self, ast: (&Literal, &TextLocation, &Analyzed), context: MelInterpContext, _driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_ternary_expr( &self, ast: &TernaryExpr<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
fn visit_member_access_expr( &self, ast: &MemberAccessExpression<Analyzed>, context: MelInterpContext, driver: &AstVisitorDriver, ) -> AstVisitorResult<MelInterpContext, Box<InterpLocatableError>>
Auto Trait Implementations§
impl Freeze for MelInterp
impl RefUnwindSafe for MelInterp
impl Send for MelInterp
impl Sync for MelInterp
impl Unpin for MelInterp
impl UnsafeUnpin for MelInterp
impl UnwindSafe for MelInterp
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