Compiler Design

Which of the following best describes Lexical pattern matching?

Correct answer

C. The use of regular expressions by a lexical analyzer to define and recognize valid tokens.

Explanation

Lexical pattern matching refers to the use of regular expressions by a lexical analyzer to define and recognize valid tokens.