mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
Fix #370
This commit is contained in:
parent
44781cb030
commit
e246fad74d
9 changed files with 110 additions and 72 deletions
|
@ -292,7 +292,7 @@ impl ParserRunner {
|
|||
}
|
||||
|
||||
pub fn parse(&mut self, src: String) -> Result<Module, ParserRunnerErrors> {
|
||||
let ts = Lexer::new(Input::Str(src))
|
||||
let ts = Lexer::new(Input::Str(self.cfg.input.id(), src))
|
||||
.lex()
|
||||
.map_err(|errs| ParserRunnerErrors::convert(self.input(), errs))?;
|
||||
Parser::new(ts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue