Tokens

Tokens are the smallest elements of a C++ program, they have a specific meaning to the compiler.
  • Identifiers
  • Numeric
  • Boolean and Pointer Literals
  • String and Character Literals
  • User-Defined Literals
  • Operators
  • Punctuators
  • Keywords
Take a note tokens are usually separated by white space, which can be one or more:
  • Blanks
  • Horizontal or vertical tabs
  • New lines
  • Form feeds
  • Comments