Lexical Analysis - Identifier Token

> Code - (Programming|Computer) Language > Code - Grammar / Syntax (Lexical)

1 - About

A token that has a name is called an identifier.

Example:

Advertising

3 - Example:

Consider the following programming expression:

sum = 3 + 2;

Tokenized in the following table:

Token
Lexeme Lexeme type
sum Identifier
= Assignment operator
3 Integer literal
+ Addition operator
2 Integer literal
; End of statement

4 - Documentation / Reference

Advertising