[fine] Environments for functions
Fun times.
This commit is contained in:
parent
308114f8cf
commit
efd0685f41
3 changed files with 81 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue