Syntax: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
In computer science, the syntax of a computer [[programming language]] is the rules that define the combinations of symbols that are considered to be correctly structured statements or expressions in that language. This applies both to [[programming | In computer science, the syntax of a computer [[programming language]] is the rules that define the combinations of symbols that are considered to be correctly structured statements or expressions in that language. This applies both to [[programming languages]], where the document represents source code, and to [[markup]] [[languages]], where the document represents data. | ||
The syntax of a language defines its surface form. Text-based computer languages are based on sequences of characters, while visual programming languages are based on the spatial layout and connections between symbols (which may be textual or graphical). | The syntax of a language defines its surface form. Text-based computer languages are based on sequences of characters, while visual programming languages are based on the spatial layout and connections between symbols (which may be textual or graphical). | ||
| Line 5: | Line 5: | ||
[[category:glossary]] | [[category:glossary]] | ||
[[category:public]] | [[category:public]] | ||
[[category:index]] | |||
Latest revision as of 13:29, 28 April 2023
In computer science, the syntax of a computer programming language is the rules that define the combinations of symbols that are considered to be correctly structured statements or expressions in that language. This applies both to programming languages, where the document represents source code, and to markup languages, where the document represents data.
The syntax of a language defines its surface form. Text-based computer languages are based on sequences of characters, while visual programming languages are based on the spatial layout and connections between symbols (which may be textual or graphical).