1. 程式人生 > >token in c and cpp (C preprocessor)

token in c and cpp (C preprocessor)

-c iso types The roc reference and -name space

C tokens are of six types, They are,

  • keyword
  • identifier
  • constant
  • string-literal
  • punctuator

preprocessing-token:

  • head-name
  • identifer
  • pp-number
  • character-constant
  • string-literal
  • punctuator
  • each non-white-space character that cannot be one of the above

reference :
ISO/IEC 9899:201x
N1570
C11

[To be continued]

token in c and cpp (C preprocessor)