Prepare parser for function definitions

This commit is contained in:
Joscha 2022-11-19 18:58:39 +01:00
parent 86006933d7
commit 9a1bb92dfe
4 changed files with 22 additions and 2 deletions

11
src/parser/func_defs.rs Normal file
View file

@ -0,0 +1,11 @@
use chumsky::prelude::*;
use crate::ast::{Expr, FuncDef};
use super::basic::Error;
pub fn func_def(
expr: impl Parser<char, Expr, Error = Error>,
) -> BoxedParser<'static, char, FuncDef, Error> {
todo().boxed()
}