scan.h

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

H
18
字号
/* File: scan.h
   The scanner interface for the TINY compiler
*/

#ifndef _SCAN_H
#define _SCAN_H

/* MAXTOKENLEN is the maximum size of a token */
#define MAXTOKENLEN 40

/* tokenString array stores the lexeme of each token */
extern char tokenString[MAXTOKENLEN+1];

/* function getToken returns the next token in source file */
TokenType getToken(void);

#endif

⌨️ 快捷键说明

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