pub struct Translator {
pub pcode: PCodeManager,
pub sym_table: SymTable,
pub has_error: bool,
pub level: usize,
pub addr: usize,
pub addr_increment: usize,
pub scope_list: Vec<String>,
}Fields§
§pcode: PCodeManager§sym_table: SymTable§has_error: bool§level: usize§addr: usize§addr_increment: usize§scope_list: Vec<String>Implementations§
Source§impl Translator
impl Translator
pub fn show_sym_table(&self)
Source§impl Translator
impl Translator
pub fn translate(&mut self, entry: &ProgramExpr) -> PCodeManager
Trait Implementations§
Source§impl Clone for Translator
impl Clone for Translator
Source§fn clone(&self) -> Translator
fn clone(&self) -> Translator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Translator
impl Debug for Translator
Auto Trait Implementations§
impl Freeze for Translator
impl RefUnwindSafe for Translator
impl Send for Translator
impl Sync for Translator
impl Unpin for Translator
impl UnwindSafe for Translator
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