syntax

US /ˈsɪn.tæks/
UK /ˈsɪn.tæks/
"syntax" picture
1.

語法, 句法

the arrangement of words and phrases to create well-formed sentences in a language

:
The grammar checker identified an error in the sentence syntax.
語法檢查器識別出句子語法中的錯誤。
Understanding the basic rules of syntax is crucial for learning a new language.
理解語法的基本規則對於學習一門新語言至關重要。
2.

語法, 句法

the set of rules that defines the combinations of symbols that are considered to be correctly structured statements or expressions in a particular language, especially a programming language

:
A common error for beginners in programming is incorrect syntax.
程式設計初學者常見的錯誤是語法不正確。
The compiler reported a syntax error, indicating a problem with the code structure.
編譯器報告了一個語法錯誤,表明程式碼結構存在問題。