Syntax

/ˈsɪntæks/ noun

Definition

The set of rules that defines the correct structure and format of statements in a programming language. It specifies how symbols, keywords, and operators must be arranged to create valid code that the computer can understand.

Etymology

From Greek 'syntaxis' meaning 'arrangement together,' from 'syn-' (together) + 'taxis' (arrangement). Borrowed from linguistics in the 1960s when computer scientists realized programming languages needed formal grammatical rules like human languages.

Kelly Says

Programming syntax is like grammar rules in English - just as you can't say 'dog the happy runs' and expect to be understood, you can't write 'if x = 5 then print hello' in most programming languages. The words might be right, but the arrangement breaks the rules, so neither humans nor computers can understand what you mean!

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.