Skip to content
ARCHIEENGLISH
LearnPlayWordsRanking
  • Learn
  • Play
  • Words
  • Ranking
  • Mine
← Vocabulary

syntax

UK/ˈsɪn.tæks/US/ˈsɪn.tæks/
nounC12 meaningsOccasional — familiar, but not everyday · #11,636 of 15,258mostly written

Syntax is the order words go in: which word may follow which, and where. The cat sat on the mat is fine; sat the on cat mat the has the same words and no syntax at all.

In a programming language, syntax is the exact punctuation and shape the machine demands, so a missing bracket or a stray comma gives you a syntax error and nothing runs until you fix it. Grammar is the bigger subject, taking in endings, agreement and tenses, and syntax is the arrangement part of it. Word order does heavy work in English, which is why the dog bit the man and the man bit the dog are built from one set of words and mean opposite things. The adjective is syntactic, and syntactically means as far as the arrangement goes, which is a way of saying a sentence is legal even when it is nonsense.

Definitions of syntax

  1. 1noungrammarThe rules for how words are arranged into phrases and sentences.C1~20%

    “German syntax puts the verb at the end of a subordinate clause.”

  2. 2nounsyntaxThe exact form a programming language requires code to be written in.B2+~80%

    “The build failed on a syntax error in line forty.”

Shares are an estimate: a language model read 12 sentences found in the wild and placed 10 of them on a sense (2 were unclear) — a count of our sample, not a measurement of English.

Also practised as

  • nounThe way words are arranged into sentences.

Where it comes from

Syntax comes from Ancient Greek syntaxis, made of syn, together, and taxis, arrangement, from tasso, to arrange. It reached English partly through Latin syntaxis and partly straight from the Greek. Putting words in order is arranging them together, and the Greek says that and nothing more.

  1. Proto-Indo-European

    *teh₂g-

  2. Ancient Greek

    σύνταξις

  3. Latin

    syntaxis

  4. English, today

    syntax

Built from

  • σύν · Ancient Greek — together
  • τάξις · Ancient Greek — arrangement
  • τάσσω · Ancient Greek — to arrange

Partly from Latin syntaxis and partly from its etymon, Ancient Greek σύνταξις, from σύν (“together”) + τάξις (“arrangement”), from τάσσω (“to arrange”). a doublet of syntaxis.

Etymology from Wiktionary, CC BY-SA

Practised in Computing & Code

Practise this word

syntax in the wild

  • Different syntaxes for writing regular expressions have existed since the 1980s, one being the POSIX standard and another, widely used, being the Perl syntax.

    Regular expression

  • In linguistics, syntax ( SIN-taks) is the study of how words and morphemes combine to form well-formed larger units such as phrases and sentences.

    Syntax

  • In logic, syntax is the study of how strings of symbols form well-formed formulas in formal languages.

    Syntax

  • The syntax is "abstract" in the sense that it does not represent every detail of the concrete syntax, but instead represents the essential structural information of the text.

    Abstract syntax tree

  • During syntax analysis, a parser may construct an AST representing the syntactic structure of the input program.

    Abstract syntax tree

1 / 3

From Wikipedia, CC BY-SA 4.0. These sentences were written by other people about their own subjects; they are here to show the word at work, not as anybody’s opinion.