Update version (v0.2.4)

A crash problem with file input has been fixed.
This commit is contained in:
Shunsuke Shibayama 2022-08-17 00:48:19 +09:00
parent 76df45e412
commit c79fcd5dbe
9 changed files with 37 additions and 19 deletions

View file

@ -296,6 +296,10 @@ impl Runnable for ParserRunner {
#[inline]
fn clear(&mut self) {}
fn exec(&mut self) -> Result<(), Self::Errs> {
todo!()
}
fn eval(&mut self, src: Str) -> Result<String, ParserRunnerErrors> {
let ast = self.parse_from_str(src)?;
Ok(format!("{ast}"))