mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
start giving header parsing good messages
This commit is contained in:
parent
5029469825
commit
905301bf96
4 changed files with 100 additions and 10 deletions
|
@ -20,6 +20,7 @@ use roc_region::all::{Located, Region};
|
|||
|
||||
use crate::parser::Progress::{self, *};
|
||||
|
||||
// public for testing purposes
|
||||
pub fn expr<'a>(min_indent: u16) -> impl Parser<'a, Expr<'a>, SyntaxError<'a>> {
|
||||
// Recursive parsers must not directly invoke functions which return (impl Parser),
|
||||
// as this causes rustc to stack overflow. Thus, parse_expr must be a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue