logo资料库

C语言BNF语法的图形化展示.pdf

第1页 / 共17页
第2页 / 共17页
第3页 / 共17页
第4页 / 共17页
第5页 / 共17页
第6页 / 共17页
第7页 / 共17页
第8页 / 共17页
资料共17页,剩余部分请下载后查看
file
function definition
declaration specifier
declarator
declaration
storage class specifier
type specifier
storage modifier
structure or union specifier
struct member declaration
bit field declaration
enum specifier
parameter type list
abstract declarator
initialized declaration list
identifier
constant
floating-point constant
fractional constant
exponent part
integer constant
character constant
escape sequence
string literal
expression
primary expression
postfix expression
argument expression list
unary operator
cast expression
binary operator
assignment operator
statement
labeled statemen
compound statement
expression statement
selection statement
Iteration statement
Jump statement
preprocessor directive
if section
if group
elif group
else group
endif line
control line
preprocessing token
stringized token
macro parameter
concatenated token
Appendix B Syntax of ANSI C file: function definition:
Syntax of ANSI C 479 declaration specifier: declarator: declaration:
480 Appendix B storage class specifier: type specifier: storage modifier: ~~ volatile
Syntax of ANSI C structure or union specifier: 481 struct member declaration: bit field declaration: I -r---------.-~ constant ~ '---.I declarator~ • -\..:..I -jexpressionj - enum specifier:
482 parameter type list: Appendix B abstract declarator: f initialized declaration list:
Syntax of ANSI C 483 Identifier: constant: _I floating-point 1 1 constant 1 _I integer 1 1 constant 1 . 1 enumeration 1 1 constant 1 _I character 1 1 constant 1 floating-point constant:
484 fractional constant: Appendix B exponent part: integer constant: character constant:
Syntax of ANSI C escape sequence: 485 string literal: note: a = octal digit h = hex/decimal digit expression: primary expressionj---T----;===.:=:;---r----T ... expression
分享到:
收藏