6.4.6 Punctuators

Syntax

1

punctuator: one of

[ ] ( ) { } . ->

++ & * + - ~ !

/ % << >> < >

<= >= == != ^ | && ||

? : ; ...

= *= /= %= += -= <<= >>= &= ^= |=

, # ##

<: :> <% %> %: %:%:

Semantics

2

A punctuator is a symbol that has independent syntactic and semantic significance. Depending on context, it may specify an operation to be performed (which in turn may yield a value or a function designator, produce a side effect, or some combination thereof) in which case it is known as an operator (other forms of operator also exist in some contexts). An operand is an entity on which an operator acts.

3

In all aspects of the language, the six tokens[1]

<: :> <% %> %: %:%:

behave, respectively, the same as the six tokens

[ ] { } # ##

except for their spelling.[2]

Forward References

Footnotes