mirror of
https://github.com/Noratrieb/uwucc.git
synced 2026-01-14 16:45:07 +01:00
direct declarator
This commit is contained in:
parent
908c5c7615
commit
955effd621
2 changed files with 17 additions and 15 deletions
|
|
@ -279,11 +279,13 @@ where
|
|||
/// direct-declarator ( parameter-type-list )
|
||||
/// direct-declarator ( identifier-listopt )
|
||||
fn direct_declarator(&mut self) -> Result<Spanned<DirectDeclarator>> {
|
||||
if let Some((Tok::Ident(name), span)) = eat!(self, Tok::Ident(_)) {
|
||||
return Ok((DirectDeclarator::Ident((name.to_owned(), span)), span));
|
||||
let (ident, span) = self.ident()?;
|
||||
|
||||
if (eat!(self, Tok::Punct(Punct::ParenOpen))).is_some() {
|
||||
todo!("haha, no parentheses for you!")
|
||||
}
|
||||
|
||||
todo!()
|
||||
Ok((DirectDeclarator::Ident((ident, span)), span))
|
||||
}
|
||||
|
||||
// -----------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue