Computer Science, asked by aairahassan999, 5 hours ago

Explain briefly how lexical analysis uses regular expression to identify different patterns

Answers

Answered by babydoll57
0

Answer:

The lexical analyzer needs to scan and identify only a finite set of valid string/token/lexeme that belong to the language in hand. It searches for the pattern defined by the language rules. Each pattern matches a set of strings, so regular expressions serve as names for a set of strings.

Similar questions