A programming error in which the grammatical rules of the language are broken. Syntax errors can be detected by the compiler, unlike semantic errors, which do not become apparent until run-time. See alsoerror diagnostics.
Internet
An error that occurs when the rules of a programming language or some other notation are not adhered to. For a programming language, this prevents the program being compiled and run.