mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Add exec() of ParserRunner
This commit is contained in:
parent
1ed302d496
commit
f836453761
1 changed files with 3 additions and 1 deletions
|
@ -189,7 +189,9 @@ impl Runnable for ParserRunner {
|
||||||
fn clear(&mut self) {}
|
fn clear(&mut self) {}
|
||||||
|
|
||||||
fn exec(&mut self) -> Result<(), Self::Errs> {
|
fn exec(&mut self) -> Result<(), Self::Errs> {
|
||||||
todo!()
|
let ast = self.parse()?;
|
||||||
|
println!("{ast}");
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn eval(&mut self, src: Str) -> Result<String, ParserRunnerErrors> {
|
fn eval(&mut self, src: Str) -> Result<String, ParserRunnerErrors> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue