Lexical Analysis - Identifier Token

Compiler

About

A token that has a name is called an identifier.

Example:

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

Documentation / Reference





Discover More
Compiler
Language - Symbol table

A symbol table is a used by a compiler or interpreter, where each identifier (a.k.a. symbol with a name) in a program's source code is associated with information relating to its declaration or appearance...



Share this page:
Follow us:
Task Runner