use Defs in the parse::ast::Expr

This commit is contained in:
Folkert 2022-06-01 12:54:40 +02:00
parent 5d8bb105c5
commit ad9d06bd63
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
18 changed files with 105 additions and 335 deletions

View file

@ -39,19 +39,6 @@ pub fn module_defs<'a>() -> impl Parser<'a, Defs<'a>, SyntaxError<'a>> {
)
}
#[inline(always)]
pub fn module_defs_help<'a>() -> impl Parser<'a, Vec<'a, Loc<Def<'a>>>, SyntaxError<'a>> {
// force that we parse until the end of the input
let min_indent = 0;
skip_second!(
specialize_region(
|e, r| SyntaxError::Expr(e, r.start()),
crate::expr::defs(min_indent),
),
end_of_file()
)
}
pub fn parse_header<'a>(
arena: &'a bumpalo::Bump,
state: State<'a>,