globals.h

来自「C编译器」· C头文件 代码 · 共 40 行

H
40
字号
#ifndef _GLOBALS_H_
#define _GLOBALS_H_

#include <iostream>
#include <fstream>
#include <string>
#include <vector>

using namespace std;

typedef vector<string> vecStr;
typedef vector<vecStr>  DVec_str; 
typedef vector< vector<int> >        DVec_int;

typedef struct 
{
	string token;
	vecStr first;
	vecStr follow;
}Nonterminal;

typedef struct DFA_Item
{
	vecStr production;
	string nexttoken;
}Item;

typedef struct StateType
{
	vector<Item>  items;
	string token;
	struct StateType * next;	
}DFA_State;      

typedef vector<Nonterminal>  vecNter;


#endif

⌨️ 快捷键说明

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