symbol.h

来自「语法分析程序,使用是递归子程序法.自己写的程序,学习」· C头文件 代码 · 共 21 行

H
21
字号
/*
 * Author: zhangdi
 * Date: 2008-11-10
 * Description: symbol head file, declare the function
 * related to symbol table
 */

#ifndef SYMBOL_H_INCLUDED
#define SYMBOL_H_INCLUDED

/* look up a symbol in the symbol table, if not has return 0 */
int lookup(char s[]);
/* insert a symbol into symbol table */
int insert(char s[], int tok);
/* output symbol table to a txt file */
int symtabledisplay();
/* distinguish a identifier is a key word */
int searchkeyword(char key[]);

#endif // SYMBOL_H_INCLUDED

⌨️ 快捷键说明

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