start pretty printer

This commit is contained in:
nora 2022-07-02 22:22:32 +02:00
parent d90e21e06c
commit 68258a9a95
10 changed files with 604 additions and 299 deletions

View file

@ -173,8 +173,8 @@ pub struct Declarator {
#[derive(Debug, DebugPls)]
pub struct FunctionDef {
pub declaration: Decl,
pub body: Vec<Expr>,
pub decl: Decl,
pub body: Vec<()>,
}
#[derive(Debug, DebugPls)]
@ -182,3 +182,5 @@ pub enum ExternalDecl {
Decl(Decl),
FunctionDef(FunctionDef),
}
pub type TranslationUnit = Vec<ExternalDecl>;