Syntax error

From Wikipedia, the free encyclopedia

In computer science a syntax error ( IPA: /ˈsɪntæks ɛrə(ɹ)/ ) refers to an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language.

If a syntax error is encountered during compilation it must be corrected if the source code is to be successfully compiled. An attribute that often separates commercial quality compilers from academic projects is the extent to which an attempt is made to automatically correct the error and continue processing the source code.

Syntax errors may also occur when an invalid equation is entered into a calculator. This can be caused by opening brackets without closing them, or less commonly, using several decimal points in one number.

[edit] See also