pub struct CortexInterpreter { /* private fields */ }
Implementations§
Source§impl CortexInterpreter
impl CortexInterpreter
pub fn new() -> Result<Self, CortexError>
pub fn preprocess_function( &mut self, function: PFunction, ) -> Result<RFunction, CortexError>
pub fn execute(&mut self, program: Program) -> Result<CortexValue, CortexError>
pub fn execute_expression( &mut self, expression: PExpression, ) -> Result<CortexValue, CortexError>
pub fn execute_statement( &mut self, statement: PStatement, ) -> Result<(), CortexError>
pub fn determine_type( &mut self, expression: PExpression, ) -> Result<CortexType, CortexError>
pub fn gc(&mut self)
pub fn hpsz(&self) -> usize
pub fn register_module( &mut self, path: &PathIdent, module: Module, ) -> Result<(), CortexError>
pub fn run_top_level(&mut self, top_level: TopLevel) -> Result<(), CortexError>
pub fn call_function( &mut self, func: &RFunction, args: Vec<CortexValue>, ) -> Result<CortexValue, CortexError>
Auto Trait Implementations§
impl Freeze for CortexInterpreter
impl !RefUnwindSafe for CortexInterpreter
impl !Send for CortexInterpreter
impl !Sync for CortexInterpreter
impl Unpin for CortexInterpreter
impl !UnwindSafe for CortexInterpreter
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