mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add execution test
This commit is contained in:
parent
d6e06a02c0
commit
423206920a
11 changed files with 135 additions and 34 deletions
|
@ -186,10 +186,10 @@ impl Runnable for ParserRunner {
|
|||
#[inline]
|
||||
fn clear(&mut self) {}
|
||||
|
||||
fn exec(&mut self) -> Result<(), Self::Errs> {
|
||||
fn exec(&mut self) -> Result<i32, Self::Errs> {
|
||||
let ast = self.parse(self.input().read())?;
|
||||
println!("{ast}");
|
||||
Ok(())
|
||||
Ok(0)
|
||||
}
|
||||
|
||||
fn eval(&mut self, src: String) -> Result<String, ParserRunnerErrors> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue