parse some things

This commit is contained in:
nora 2022-06-21 21:51:26 +02:00
parent eb68c2b207
commit 5cf64dfc55
4 changed files with 150 additions and 9 deletions

View file

@ -23,3 +23,16 @@ pub enum TypeSpecifier {
// enum-specifier
// typedef-name
}
#[derive(Debug, Default, DebugPls)]
pub struct DeclAttr {
pub is_extern: bool,
pub is_static: bool,
pub is_thread_local: bool,
}
#[derive(Debug, DebugPls)]
pub struct DeclSpec {
pub ty: TypeSpecifier,
pub attrs: DeclAttr,
}