pub struct Compiler {
pub body: FunctionObject,
pub current_index: usize,
pub errors: Vec<ErrorTuple>,
pub valid: bool,
/* private fields */
}Fields§
§body: FunctionObject§current_index: usize§errors: Vec<ErrorTuple>§valid: boolImplementations§
source§impl<'a> Compiler
impl<'a> Compiler
sourcepub fn print_errors(&self)
pub fn print_errors(&self)
Print all syntax errors
pub fn error_string(&self) -> String
sourcepub fn get_errors(&self) -> &Vec<ErrorTuple>
pub fn get_errors(&self) -> &Vec<ErrorTuple>
Return current array of errors
pub fn pop_errors(&mut self) -> Vec<ErrorTuple>
pub fn compile(&mut self, source: String) -> FunctionObject
Auto Trait Implementations§
impl !RefUnwindSafe for Compiler
impl !Send for Compiler
impl !Sync for Compiler
impl Unpin for Compiler
impl !UnwindSafe for Compiler
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