more parsing

This commit is contained in:
nora 2022-06-21 22:09:02 +02:00
parent 5cf64dfc55
commit 2ce2edfc64
3 changed files with 66 additions and 5 deletions

View file

@ -36,3 +36,11 @@ pub struct DeclSpec {
pub ty: TypeSpecifier,
pub attrs: DeclAttr,
}
#[derive(Debug, DebugPls)]
pub struct FunctionDefinition {
pub decl_spec: Spanned<DeclSpec>,
pub declarator: Spanned<String>,
pub declaration_list: Spanned<Vec<()>>,
pub body: Vec<()>,
}