diff --git a/prqlc/prqlc-parser/src/parser/mod.rs b/prqlc/prqlc-parser/src/parser/mod.rs index e16221e28793..0e4c2798a3b3 100644 --- a/prqlc/prqlc-parser/src/parser/mod.rs +++ b/prqlc/prqlc-parser/src/parser/mod.rs @@ -22,7 +22,7 @@ pub fn parse_lr_to_pr( // We don't want comments in the AST (but we do intend to use them as part of // formatting) let stream = prepare_stream(lr.into_iter(), source, source_id); - let (pr, parse_errors) = ::chumsky::Parser::parse_recovery(&stmt::source(), stream); + let (pr, parse_errors) = stmt::source().parse_recovery(stream); let errors = parse_errors.into_iter().map(|e| e.into()).collect(); log::debug!("parse errors: {errors:?}"); diff --git a/prqlc/prqlc/src/parser.rs b/prqlc/prqlc/src/parser.rs index 95d9cc472d5d..55774272d917 100644 --- a/prqlc/prqlc/src/parser.rs +++ b/prqlc/prqlc/src/parser.rs @@ -52,7 +52,7 @@ pub fn parse(file_tree: &SourceTree) -> Result { } } -/// Build PRQL AST from a PRQL query string. +/// Build PR AST from a PRQL query string. pub(crate) fn parse_source(source: &str, source_id: u16) -> Result, Vec> { let (tokens, mut errors) = prqlc_parser::lexer::lex_source_recovery(source, source_id);