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
Breaking source code into tokens
โถ Continue where you left offLexical 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.
What is a regular expression used for in compilers?