Does interpreter detect syntax error?
A program will not compile until all syntax errors are corrected. For interpreted languages, however, a syntax error may be detected during program execution, and an interpreter’s error messages might not differentiate syntax errors from errors of other kinds. What detects a syntax error? Syntax errors are caught by a software program called a compiler, and the programmer must fix …