[fine] Environments for functions

Fun times.
This commit is contained in:
John Doty 2024-01-07 08:09:43 -08:00
parent 308114f8cf
commit efd0685f41
3 changed files with 81 additions and 3 deletions

View file

@ -120,7 +120,7 @@ impl<'a> std::ops::IndexMut<TreeRef> for SyntaxTree<'a> {
pub enum TreeKind {
Error,
File,
FunDecl,
FunctionDecl,
ParamList,
Parameter,
TypeExpression,
@ -488,7 +488,7 @@ fn function(p: &mut CParser) {
block(p);
}
p.end(m, TreeKind::FunDecl);
p.end(m, TreeKind::FunctionDecl);
}
fn param_list(p: &mut CParser) {