What Is a Symbol Table?

In computer science, a symbol table is a data structure used in language translators, such as compilers and interpreters. In the symbol table, each identifier in a program's source code is bound to its declaration or usage information, such as its data type, scope, and memory address.

Symbol table

In computer science, a symbol table is a data structure used in language translators, such as compilers and interpreters. In the symbol table, each identifier in a program's source code is bound to its declaration or usage information, such as its data type, scope, and memory address.
Chinese name
Symbol table
Foreign name
The symbol table
Used for
Language translator
Attributes
data structure
During the work of the compiler, the symbol table needs to continuously collect, record, and use related information such as the types and characteristics of some syntax symbols in the source program. This information is generally stored in the system in tabular form. Such as the constant table, variable name table, array name table, procedure name table, label table, etc., collectively referred to as the symbol table. The quality of the symbol table organization, construction, and management methods will directly affect the operating efficiency of the compilation system.
Symbol table in the paper: If a large number of physical quantity symbols, signs, acronyms, special units of measurement, custom nouns and terminology are used in the paper, a note list should be written.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?