szintaxis
in English: syntax
Syntax is the "grammar" of a programming or descriptive language: the formal rules that dictate how to write an instruction so the machine can interpret it.
In plain terms
Every language has a grammar. In Hungarian, this includes word order, how words connect to each other, and punctuation. In programming languages, this is the order of parentheses, commas, and keywords; in some languages, indentation rules apply too. This formal rule system is called syntax.
It is like a bank transfer form: even if you know exactly who to send money to and how much, if you write the account number in the wrong field, the system rejects it. Computers are just as strict: a missing parenthesis or quotation mark usually prevents the program from starting.
Syntax is only about form, not content. A sentence can be grammatically correct yet meaningless, just as a program can be formally correct while calculating a wrong result.
In the AI era, this term is important because language models and coding agents largely relieve you of keeping syntax in mind. In everyday language, you say what you want, and they write it in a form correct for the machine.
How it works
- Language designers establish the rules: which words and symbols exist and in what order they can appear next to each other.
- When you compile or run a program, the compiler or interpreter first breaks the text into elementary parts: words, numbers, and punctuation marks.
- It then checks whether the pieces fit together according to the rules, for example, whether every opened bracket has a matching pair.
- If something is wrong, it signals a syntax error, usually with the line number, and the program typically will not start.
- If the format is correct and the program passes further checks, the machine executes the instructions. Whether those instructions do good is not decided by syntax.
An everyday example
In Excel, you type '=SUM(A1:A10' but forget the closing parenthesis, so the program shows an error message or offers a correction. This is a syntax error: you knew what you wanted, but the form was not valid. It is rare, but code written by an AI agent can also fail to start because of a single mistyped comma.
Who is affected
A common misconception
Limits and risks
- Syntax checking does not detect logical errors: it accepts a bad formula just as it accepts a good one, if the form is valid.
- Every language has its own syntax, so what is correct in one may cause errors in another, and AI can mix them up.
- Code written by AI agents is now rarely formally incorrect, so you should focus your attention on whether it actually does what you asked.
- The error message does not always point to where the error actually is: due to a missing bracket, the machine sometimes stalls only several lines later.
Similar, but not the same
- szemantika – Syntax governs the format, semantics the meaning, i.e., what a correctly written instruction does.
- algorithm – An algorithm is the logic of the steps to a solution, while syntax is how to write it in a specific language.
- programming language – A programming language is the entire tool with rules, meaning, and toolkit, while syntax is only its formal, grammatical part.
Related concepts
programming language, formal language, programming
szintaktikai hiba, keyword
szemantika, compiler, source code, debugging, syntax highlighting, natural language programming
A brief history
The word originates from the Greek "syntaxis" (arrangement, ordering) and originally referred to the syntactic part of grammar. The precise, formal description of programming language syntax became standard practice with the ALGOL 60 language published in 1960 and the Backus–Naur form used with it.
Where things stand
Syntax remains an indispensable foundation of programming, but by the end of 2026, keeping it in mind has lost much of its importance in many tasks, because coding agents and code editors handle it mostly automatically. The focus of human work is shifting increasingly from form to stating intent precisely and verifying the result.
In the news
- Tata school principal: AI can wean children off thinking altogetherOct 10, 2026 · Education & Family
- Sopron's Széchenyi Grammar School regulates rather than bans AI use in schoolOct 8, 2026 · Education & Family
Also known as
szintaxis · syntax · szintaktika · syntactic rules · szintaktikai hiba · szintaxishiba · syntax error · grammar (programming language)
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.