词法分析.cpp

来自「原来自写的C词法分析小程序 适用于课程设计等」· C++ 代码 · 共 38 行

CPP
38
字号
// 词法分析.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "stdio.h"
#include <iostream>
#include <string>

using namespace std;

//TOKEN种类
class Token
{
public:
	int line;
	string lex;
	string sem;

	Token(){}
	Token(int _line, string _lex, string _sem)
	{
		line=_line;
		lex=_lex;
		sem=_sem;
	}
};


//静态变量区
static char buf[1000];
static int iter=0;


int main(int argc, char* argv[])
{
	return 0;
}

⌨️ 快捷键说明

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