ANSI-C grammar - array declarations like [*] et alii

后端 未结 3 1237
别跟我提以往
别跟我提以往 2021-02-14 08:54

The ANSI C grammar from -link- give me the following rules for array declarations:

 (1) | direct_declarator \'[\' type_qualifier_list assignment_expression \']\'         


        
3条回答
  •  太阳男子
    2021-02-14 09:52

    I hope you are not trying to learn C grammar from a yacc specification!? The link you posted appears to be based on the ISO C99 draft. The relevant section is 6.7.5.2. The wording is arcane (but less so than the yacc syntax perhaps!)

提交回复
热议问题