Home
 

Declarations

Declarations

The declarations form a block, just like the statements. There are single declarations and a block consists of a sequence of such declarations.

A single declaration consists of a list of identifiers and a data type. As soon as all information is available (that is list of identifiers and their data type) it is inserted in the symbol table.

The memory for a symbol is allocated when it is inserted into the symbol table. A memory block of the data type size is requested from a global memory management module.

The declarations are no further needed, because they put their information into the symbol table.