Professional Documents
Culture Documents
Lexical Analyzer
Lexical Analyzer
13. What type of errors can be reported by the lexical analysis phase?
Lexical error is a sequence of characters that does not match the pattern of any token.
The lexical phase error is found during the execution of the program.
● Spelling error.
15. Define your own rule for an identifier and give regular expression for that