Symbol attributes and symbol table entries
. Symbols have associated attributes
. typical attributes are name, type, scope, size, addressing mode etc.
. a symbol table entry collects together attributes such that they can be easily set and retrieved
. example of typical names in symbol table
Name |
Type
|
name |
character string
|
class |
enumeration
|
size |
integer
|
type |
enumeration
|
|