Parse named function definitions

This commit is contained in:
Joscha 2022-11-19 19:24:23 +01:00
parent ff3edf17e5
commit 0099277644
3 changed files with 95 additions and 9 deletions

View file

@ -55,3 +55,7 @@ pub fn ident() -> BoxedParser<'static, char, Ident, Error> {
})
.boxed()
}
pub fn local() -> BoxedParser<'static, char, Option<Space>, Error> {
text::keyword("local").ignore_then(space()).or_not().boxed()
}