⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 symtab.h

📁 6个不同的词法语法分析程序源代码
💻 H
字号:

#ifndef _SYMTAB_H_
#define _SYMTAB_H_
#include "globals.h"

typedef struct 
{
	int memloc ;/* memory location for variable */
    ExpType type ;
	int isArr;
} Attr;


/* Procedure st_insert inserts line numbers and
 * memory locations into the symbol table
 * loc = memory location is inserted only the
 * first time, otherwise ignored
 */
void st_insert( char * name, int lineno, Attr attr );

/* Function st_lookup returns the memory 
 * location of a variable or -1 if not found
 */
Attr st_lookup ( char * name );

/* Procedure printSymTab prints a formatted 
 * listing of the symbol table contents 
 * to the listing file
 */
void printSymTab(FILE * listing);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -