lex.h
来自「掌握如何用C来实现各种算法」· C头文件 代码 · 共 29 行
H
29 行
/*****************************************************************************
* *
* --------------------------------- lex.h -------------------------------- *
* *
*****************************************************************************/
#ifndef LEX_H
#define LEX_H
#include "chtbl.h"
/*****************************************************************************
* *
* Define the token types recognized by the lexical analyzer. *
* *
*****************************************************************************/
typedef enum Token_ {lexit, error, digit, other} Token;
/*****************************************************************************
* *
* --------------------------- Public Interface --------------------------- *
* *
*****************************************************************************/
Token lex(const char *istream, CHTbl *symtbl);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?