Jabarkan Elements dari Basa program dalam bahasa sunda

A programming language's surface form is known as its syntax.  Most programming languages are purely textual; they use sequences of text including words, numbers, and punctuation, much like written natural languages.  On the other hand, there are some programming languages which are more graphical in nature, using spatial relationships between symbols to specify a program.

The syntax of a language describes the possible combinations of symbols that form a syntactically correct program.  The méaning given to a combination of symbols is handled by semantics.  Since most languages are textual, this article discusses textual syntax.

Programming language syntax is usually defined using a combination of regular expressions (for lexical structure) and Backus-Naur Form (for grammatical structure).  Below is a simple grammar, based on Lisp:

expression ::= atom   | list

atom       ::= number | symbol