C Constants

The numeric constants are treated exactly the same as in C. The enumeration constant identifiers go though the same grammar paths as variable identifiers, which has basically the same effect as the C semantics.

 

primary-expression

        : identifier-or-key-word

        | constant

        | string-literal-list

        | LPAREN expression RPAREN

        | process_set

        | LPAREN process_range RPAREN

 

string-literal-list

        : string

        | string-literal-list string

 

constant

        : FLOATINGconstant

        | INTEGERconstant

        | CHARACTERconstant

        | WIDECHARACTERconstant

        | WIDESTRINGliteral