mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
Add REPL tests
This commit is contained in:
parent
3c3e1c448a
commit
1d24655588
13 changed files with 162 additions and 41 deletions
|
@ -102,7 +102,7 @@ impl Runnable for ASTLowerer {
|
|||
|
||||
fn exec(&mut self) -> Result<i32, Self::Errs> {
|
||||
let mut ast_builder = ASTBuilder::new(self.cfg.copy());
|
||||
let ast = ast_builder.build(self.input().read())?;
|
||||
let ast = ast_builder.build(self.cfg.input.read())?;
|
||||
let artifact = self
|
||||
.lower(ast, "exec")
|
||||
.map_err(|artifact| artifact.errors)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue