HP C/iX Reference Manual (31506-90011)
206 AppendixB
Syntax Summary
Phrase Structure Grammar
struct-declaration
struct-declaration-list struct-declaration
struct-declaration
::=
specifier-qualifier-list struct-declarator-list
;
specifier-qualifier-list
::=
type-specifier [specifier-qualifier-list]
type-qualifier [specifier-qualifier-list]
struct-declarator-list
::=
struct-declarator
struct-declarator-list , struct-declarator
struct-declarator
::=
declarator
[declarator]
:
constant-expression
enum-specifier
::=
enum
[identifier]
{
enumerator-list
}
enum [
identifier
]
enumerator-list
::=
enumerator
enumerator-list
,
enumerator
enumerator
::=
enumeration-constant
enumeration-constant
=
constant-expression
type-qualifier
::=
const
noalias
volatile
declarator
::=
[pointer] direct-declarator
direct-declarator
::=
identifier
(
declarator
)
direct-declarator
[
[constant-expression]
]
direct-declarator
(
parameter-type-list
)
direct-declarator
(
[identifier-list]
)
pointer
::=
*
[type-qualifier-list]
*
[type-qualifier-list] pointer
type-qualifier-list
::=
type-qualifier
type-qualifier-list type-qualifier