util.h

来自「本程序是 《编译原理与实践》一书中2.35 习题的解答。主要用到了 yyless」· C头文件 代码 · 共 19 行

H
19
字号
/* File: util.h
   Utility function for the TINY compiler
*/

#ifndef _UTIL_H_
#define _UTIL_H_

/* procedure printToken prints a token and its lexeme to the listing
   file
*/
void printToken( TokenType, const char* );

/* Function copyString allocates and makes a new copy of an existing
   string
*/
char* copyString( char* );

#endif

⌨️ 快捷键说明

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