Add exec() of ParserRunner

This commit is contained in:
GreasySlug 2022-09-10 09:04:26 +09:00
parent 1ed302d496
commit f836453761

View file

@ -189,7 +189,9 @@ impl Runnable for ParserRunner {
fn clear(&mut self) {}
fn exec(&mut self) -> Result<(), Self::Errs> {
todo!()
let ast = self.parse()?;
println!("{ast}");
Ok(())
}
fn eval(&mut self, src: Str) -> Result<String, ParserRunnerErrors> {