Contents    Page-10    Prev    Next    Page+10    Index   

Example of Structure Declaration


type date   = record   mo : 1..12;
                      day : 1..31;
                     year : integer end;

     person = record name : alfa;
                       ss : integer;
                    birth : date end;

var people : array[1..100] of person;

From these declarations, the following symbol table information might be derived:

Symbol Offset Size Type
date 0 16 Link to fields
mo 0 4 1..12
day 4 4 1..31
year 8 4 integer
person 0 32 Link to fields
name 0 8 alfa
ss 8 4 integer
birth 16 16 date
people 0 3200 person