mirror of
https://github.com/Noratrieb/uwucc.git
synced 2026-01-16 09:35:07 +01:00
start pretty printer
This commit is contained in:
parent
d90e21e06c
commit
68258a9a95
10 changed files with 604 additions and 299 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue