feroldi / cci

DEPRECATED PROJECT, see README
MIT License
37 stars 5 forks source link

struct and union #19

Closed feroldi closed 7 years ago

feroldi commented 7 years ago
struct-or-union-specifier:
  struct-or-union identifier? '{' struct-declaration-list '}'
  struct-or-union identifier

struct-or-union:
  'struct'
  'union'

struct-declaration-list:
  struct-declaration
  struct-declaration-list struct-declaration

struct-declaration:
  specifier-qualifier-list struct-declarator-list? ';'
  static-assert-declaration

struct-declarator-list:
  struct-declarator
  struct-declarator-list ',' struct-declarator

struct-declarator:
  declarator
  declarator? ':' constant-expression