/    /  Compiler Design-Symbol Table Representation (3)

Symbol Table Representation (3)

 

In variable-length representation we are using an infinite tape X reference table are variables names are stored in tape separated with the dollar ($) with their index value. 

 

Operations of Symbol table

  • The various operations performing on the symbol table are:

 

    1. INSERT: To insert variable name or junction insert ( a, int, variable)
    2. LOOK-UP: It is similar to search operation/function 

lookup(a)

               3. DELETE: To delete any variable 

delete(a)

               4. MODIFY: To modify any information about variable modify (a, float, 10.50)

5. SCOPE MANAGEMENT: Local scope and global scope are managed by scope management.

Reference Link

Symbol Table Representation (3)