pub struct Compiler { /* private fields */ }Expand description
Compiler orchestrates the full compilation pipeline
Implementations§
Source§impl Compiler
impl Compiler
pub fn new(output_dir: PathBuf) -> Self
Sourcepub fn compile(
&mut self,
forms: Vec<CoreForm>,
source_map: SourceMap,
output: &Path,
) -> Result<SourceMap>
pub fn compile( &mut self, forms: Vec<CoreForm>, source_map: SourceMap, output: &Path, ) -> Result<SourceMap>
Compile Core Forms to a binary
Accepts the SourceMap from the expansion phase and returns it with lowering mappings added for error reporting.
§Error Translation
If rustc compilation fails, errors are translated using the SourceMap to show Oxur source positions where possible. Currently shows generated Rust positions with a note that full translation is being implemented.
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