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: bool
Implementations§
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 Freeze for Compiler
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