syntax error

Program grammar violation

A syntax error is a mistake in the structure or grammar of code that prevents a program from running.

Missing punctuation, misspelled commands, or mismatched brackets are common causes: The script failed because of a syntax error on line 12.

The term extends loosely to grammatical errors in natural language.

Related

linter · Chomsky hierarchy · debugging · typo · grammar · stack trace · computer science · program crash · computing · fix · token · code · code editor · debugging tools · warning · crash · curly · fault

Categories
Opposites
code correctness

syntax errorclean code

Well-organized, maintainable programming

error type

syntax errorlogic error

Mistake in reasoning

logical flaw · runtime error · infinite loop · design flaw · type error

Family

error, syntax, syntactic, syntactical, syntaxes, syntactically, syntax errors

Familiarity
Top 100,000
Profile
Used worldwide · Timeless · Negative · Rated G