pub struct BaseCompiler<'a, 'b, Eh: ErrorHandler + Clone, W: Write> { /* private fields */ }
Implementations§
Source§impl<'a, 'b, Eh, W> BaseCompiler<'a, 'b, Eh, W>
impl<'a, 'b, Eh, W> BaseCompiler<'a, 'b, Eh, W>
pub fn new( writer: W, passes: &'b mut [&'b mut dyn CorePass<BaseConvertInfo<'a>>], option: CompileOption<Eh>, ) -> Self
Trait Implementations§
Source§impl<'a, 'b, Eh, W> TemplateCompiler<'a> for BaseCompiler<'a, 'b, Eh, W>
impl<'a, 'b, Eh, W> TemplateCompiler<'a> for BaseCompiler<'a, 'b, Eh, W>
type IR = IRRoot<BaseConvertInfo<'a>>
type Eh = Eh
type Output = Result<(), Error>
type Conv = BaseConverter<'a>
type Trans = BaseTransformer<'a, MergedPass<'b, &'b mut dyn CorePass<BaseConvertInfo<'a>>>>
type Gen = CodeWriter<'a, W>
fn get_scanner(&self) -> Scanner
fn get_parser(&self) -> Parser
fn get_converter(&self) -> Self::Conv
fn get_transformer(&mut self) -> Self::Trans
fn get_code_generator(&mut self) -> Self::Gen
fn get_error_handler(&self) -> Self::Eh
fn compile(&mut self, source: &'a str) -> Self::Output
Auto Trait Implementations§
impl<'a, 'b, Eh, W> Freeze for BaseCompiler<'a, 'b, Eh, W>
impl<'a, 'b, Eh, W> !RefUnwindSafe for BaseCompiler<'a, 'b, Eh, W>
impl<'a, 'b, Eh, W> !Send for BaseCompiler<'a, 'b, Eh, W>
impl<'a, 'b, Eh, W> !Sync for BaseCompiler<'a, 'b, Eh, W>
impl<'a, 'b, Eh, W> Unpin for BaseCompiler<'a, 'b, Eh, W>
impl<'a, 'b, Eh, W> !UnwindSafe for BaseCompiler<'a, 'b, Eh, W>
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