Lexical Analysis

Learn how a lexical analyzer analyses code and converts it into a token stream.

Lexical analysis

The term “lex” in the context of computing and compiler terms is derived from its etymological roots in Latin. Let’s explore the etymology and connection to its meaning in computing and compiler terminology:

Etymology of “Lex”

  • “Lex” is a Latin word. It is the singular form of “leges,” which means “laws" or "rules.” ...

Connection to computing and compiler