lexer.h
来自「an easy compiler to compile C」· C头文件 代码 · 共 28 行
H
28 行
// Lexer.h: interface for the Lexer class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LEXER_H__B4398D77_71EF_4B94_A279_08D548DD6E8A__INCLUDED_)
#define AFX_LEXER_H__B4398D77_71EF_4B94_A279_08D548DD6E8A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Token.h"
class Lexer
{
private:
enum {BSIZE = 128 };
int line_no; // the current line no when doing lexcial analysing
char lexbuf[BSIZE]; // temporary buffer to keep a string under being recognised
public:
Lexer();
Token getNextToken();
};
#endif // !defined(AFX_LEXER_H__B4398D77_71EF_4B94_A279_08D548DD6E8A__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?