pub struct Interpreter { /* private fields */ }
Implementations§
Source§impl Interpreter
impl Interpreter
pub const LOG_TAG: &'static str = "LangInterpreter"
pub const VERSION: &'static str = "v1.0.0"
pub fn new( lang_path: &str, lang_file: Option<&str>, term: Option<TerminalIO>, platform_api: Box<dyn PlatformAPI>, lang_args: Option<Vec<Box<str>>>, ) -> Self
pub fn parse_lines(&mut self, lines: impl Into<String>) -> Option<AST>
pub fn interpret_lines( &mut self, lines: impl Into<String>, ) -> OptionDataObjectRef
pub fn interpret_ast(&mut self, ast: &AST) -> OptionDataObjectRef
pub fn lang_test_store(&self) -> &LangTest
pub fn data_ref(&self) -> Ref<'_, Data>
pub fn data_mut(&mut self) -> RefMut<'_, Data>
pub fn current_call_stack_element(&self) -> &StackElement
pub fn call_constructor( &mut self, lang_object: &LangObjectRef, argument_list: &[DataObjectRef], pos: CodePosition, ) -> DataObjectRef
pub fn call_method( &mut self, lang_object: &LangObjectRef, raw_method_name: &str, argument_list: &[DataObjectRef], pos: CodePosition, ) -> OptionDataObjectRef
pub fn call_super_constructor( &mut self, lang_object: &LangObjectRef, argument_list: &[DataObjectRef], pos: CodePosition, ) -> DataObjectRef
pub fn call_super_method( &mut self, lang_object: &LangObjectRef, raw_method_name: &str, argument_list: &[DataObjectRef], pos: CodePosition, ) -> OptionDataObjectRef
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Interpreter
impl !RefUnwindSafe for Interpreter
impl !Send for Interpreter
impl !Sync for Interpreter
impl Unpin for Interpreter
impl !UnwindSafe for Interpreter
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