Labs ICT
โญ Pro Login

Lexical Analysis

Breaking source code into tokens

Tokenizing Source Code

Lexical analysis (scanning) is the first phase โ€” it converts a stream of characters into a stream of tokens. Each token represents a meaningful unit of the language.

Tokens

Regular Expressions

Finite Automata

๐Ÿงช Quick Quiz

What is a regular expression used for in compilers?