Tokens can be classified into several categories, including:
- Keywords: These are reserved words in the language that have a specific meaning, such as "if", "else", "while", etc.
- Identifiers: These are names given to variables, functions, or labels in the program.
- Literals: These are values that are written directly into the program, such as numbers, strings, or characters.
- Symbols: These are special characters that have a specific meaning in the language, such as +, -, *, /, etc.
- Whitespace: These are characters that are used to separate tokens, such as spaces, tabs, and line breaks.