syntax error
collocation in Englishmeaningsofsyntaxanderror
These words are often used together. Click on the links below to explore the meanings. Or,see other collocations withsyntaxorerror.
syntax
noun[U]
uk/ˈsɪn.tæks/us/ˈsɪn.tæks/
language
the grammatical arrangement of words in ...
See more atsyntax
error
noun[C or U]
uk/ˈer.ər/us/ˈer.ɚ/
a ...
See more aterror
(Definition ofsyntaxanderrorfrom theCambridge English Dictionary© Cambridge University Press)
Examplesofsyntax error
These examples are from corpora and from sources on the web. Any opinions in the examples do not represent the opinion of the Cambridge Dictionary editors or of Cambridge University Press or its licensors.
No it doesn't: at most it finds asyntaxerror!
From theCambridge English Corpus
Documents that are syntactically invalid are said to have asyntaxerror.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
A compiler will flag asyntaxerrorwhen given source code that does not meet the requirements of the language grammar.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Indeed, it is even possible to trap the exception caused by asyntaxerror.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
If a name is used prior to variable initialization, this raises asyntaxerror.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Asyntaxerrormay also occur when an invalid equation is entered into a calculator.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
But if no base is specified, as in 3, then one would have asyntaxerrorin its equivalent form in most other programming languages.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
If asyntaxerroroccurs or if any constraints are violated, the new row is not added to the table and an error returned instead.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
For any other lookahead or nonterminal, the parser announces asyntaxerror.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
If the operator is non-associative, the expression might be asyntaxerror, or it might have some special meaning.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
It accomplished this by giving an immediatesyntaxerror(when necessary) as soon as each line of a program was entered.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Unlike a program with asyntaxerror, a program with a logic error is a valid program in the language, though it does not behave as intended.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Although the overall rate of explicit disapproval was low, utterances containing syntax errors received the most disapproval.
From theCambridge English Corpus
Analyses of individual families revealed that all children received feedback following syntax errors.
From theCambridge English Corpus
The large number of syntax errors can be attributed to users who did not read the instructions carefully, or had typing problems.
From theCambridge English Corpus
Due to syntax errors (typos, using floats instead of integers, wrong intervals), another 12% were cancelled.
From theCambridge English Corpus
Exact repetitions followed well-formed speech while ill-formed speech was followed by corrective repetitions, with syntax errors receiving significantly more feedback than the other error types.
From theCambridge English Corpus
However, with nested template declarations, there is a tendency for the programmer to neglect to place a space between the two right angle brackets, thus causing a compilersyntaxerror.
From This example is from Wikipedia and may be reused under a CC BY-SA license.
Wikipedia
Table 4 shows the mean percentage of corrective repetitions to syntax errors for each child across the seven family configurations.
From theCambridge English Corpus
The lack of a type system means that we don't have to spend energy on finding and explaining type errors with the same care with which we explain syntax errors.
From theCambridge English Corpus
These examples are from corpora and from sources on the web. Any opinions in the examples do not represent the opinion of the Cambridge Dictionary editors or of Cambridge University Press or its licensors.
Want to learn more?
Go to the definition ofsyntax
Go to the definition oferror
See other collocations withsyntax
See other collocations witherror