Lexical ErrorDuring the lexical analysis phase this type of error can be detected. Lexical error is a sequence of characters that does not match the pattern of any token. Lexical phase error is found during the execution of the program. Lexical phase error can be:
Example:In this code, 1xab is neither a number nor an identifier. So this code will show the lexical error.
Next TopicSyntax Error
|