token in c and cpp (C preprocessor)

Posted 自強不息 厚德載物

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了token in c and cpp (C preprocessor)相关的知识,希望对你有一定的参考价值。

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)的主要内容,如果未能解决你的问题,请参考以下文章