mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
feat: add erg_compiler::Compiler
(python module)
This commit is contained in:
parent
163f4c07f3
commit
4466a5a463
6 changed files with 225 additions and 52 deletions
|
@ -226,6 +226,11 @@ impl<ASTBuilder: ASTBuildable, HIRBuilder: BuildRunnable> Runnable
|
|||
// don't initialize the ownership checker
|
||||
}
|
||||
|
||||
fn set_input(&mut self, input: Input) {
|
||||
self.cfg.input = input;
|
||||
self.main_builder.set_input(self.cfg.input.clone());
|
||||
}
|
||||
|
||||
fn exec(&mut self) -> Result<ExitStatus, Self::Errs> {
|
||||
let src = self.cfg_mut().input.read();
|
||||
let artifact = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue