Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
Syntax validation is the process of checking whether the syntax of a program is free of programming or stylistic editors. There are a number of tools to check syntax for almost every programming language. Some are run locally on the computer and others are available online. These tools are also known as “linters,” after the lint utility which checks for errors in C.
Syntax validation checks code for various programming and stylistic errors in programming languages. There are syntax validators, also called linters, available for almost every programming language in current use. A well-known example is the lint utility for Unix-like operating systems, written by Stephen P. Johnson at Bell Labs in 1979. The term “linter” is derived from this utility.
Syntax validators can check for things beyond syntax, flagging common errors such as using variables before they are set and dividing by zero. Syntax validators are highly specific to the programming language being checked, designed to highlight code style that goes against the best practices of a programming language community. Search engines reveal many online code checkers for most programming languages.