C6 PROGRAM SYNTAX
This section considers the various elements that make up a computer program rather than how they are used. Related material can be found in Section C3 Programming concepts, Section C4 Programming (flow of execution), Section C5 Programming (subprograms) and Section C9 Programming languages.
A computer program, which must be written in a very precise way, is written in a programming language. Programming languages have a vocabulary of only a limited number of words with precise rules describing how they may be combined.
Unless a program is written in machine code (which is very rare) it needs to be translated into some form of machine code before it can be executed. A program can be assembled, interpreted or compiled, which ...