Add REPL tests

This commit is contained in:
Shunsuke Shibayama 2023-01-17 16:32:25 +09:00
parent 3c3e1c448a
commit 1d24655588
13 changed files with 162 additions and 41 deletions

View file

@ -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)?;