HP C/iX Reference Manual (31506-90011)
Appendix B 199
Syntax Summary
Lexical Grammar
0123456789
dollar-sign
::= the $ character
Constants
constant
::=
floating-constant
integer-constant
enumeration-constant
character-constant
floating-constant
::=
fractional-constant [exponent-part] [floating-suffix]
digit-sequence exponent-part [floating-suffix]
fractional-constant
::=
[digit-sequence]
.
digit-sequence
digit-sequence
.
exponent-part
::=
e
[sign] digit-sequence
E
[sign] digit-sequence
sign
::=
+
-
digit-sequence
::=
digit
digit-sequence digit
floating-suffix
::=
flFL
integer-constant
::=
decimal-constant [integer-suffix]
octal-constant [integer-suffix]
hexadecimal-constant [integer-suffix]
decimal-constant
::=
nonzero-digit
decimal-constant digit
octal-constant
::=
0
octal-constant octal-digit
hexadecimal-constant
::=
0x
hexadecimal-digit
0X
hexadecimal-digit
hexadecimal-constant hexadecimal-digit