parse.h
来自「这是编译原理编译器中的一部分」· C头文件 代码 · 共 45 行
H
45 行
#ifndef _PARSE_H_
#define _PARSE_H_
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
typedef vector< vector<string> > DVec_str;
typedef vector< vector<int> > DVec_int;
typedef vector<string> vecStr;
typedef struct
{
string token;
vecStr first;
vecStr follow;
}Nonterminal;
typedef struct
{
string row;
string col;
int index ;
}Table;
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;
typedef vector<Table> vecTable;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?