📄 parse.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -