The symbol table is one of the core data structures of a compiler. It is a repository of all the names declared in a program along with their types and other properties, and is organized into scopes. This chapter describes the structure and the operations of the symbol table. It also explains how to perform type checking using different forms of type compatibility. It finally shows how semantic information from the symbol table can be used to support parsing.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Symbol Table

  • Hanspeter Mössenböck

摘要

The symbol table is one of the core data structures of a compiler. It is a repository of all the names declared in a program along with their types and other properties, and is organized into scopes. This chapter describes the structure and the operations of the symbol table. It also explains how to perform type checking using different forms of type compatibility. It finally shows how semantic information from the symbol table can be used to support parsing.