filmov
tv
Write a program to scan the input program and generate a symbol table.
Показать описание
Symbol table is a data structure containing a record for each identifier with fields for the attributes of the identifier. The attributes may give the information about the Storage allocated for the identifier, Data type and Scope of the identifier. By using these records each of the identifiers can be retrieved easily and quickly. During the Lexical Analysis the identifiers will be found and stored into the Symbol table, but the attributes will not be stored in lexical phase. The Compiler and the Assembler will be having their own Symbol tables. The expression will be given as the input and the output obtained will be containing the table of information about the identifiers.