This commit is contained in:
Shunsuke Shibayama 2023-01-28 12:54:42 +09:00
parent 44781cb030
commit e246fad74d
9 changed files with 110 additions and 72 deletions

View file

@ -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)