跳转到内容

用户:Antigng-bot/regex/DFAProcess.h

维基百科,自由的百科全书
#ifndef _DFASubsetChain
struct _DFASubsetChain
{
	struct _NFANode *subset;
	struct _DFASubsetChain *next;
};
#endif
#ifndef _DFACharChain
struct _DFACharChain
{
	unsigned int ch;
	int state;
	struct _DFACharChain *next;
};
#endif
#ifndef _DFANode
struct _DFANode
{
	int type;
	struct _DFACharChain *actionlist;
	struct _DFASubsetChain *id;
};
#endif

struct _DFASubsetChain *getSubsetChain(struct _NFANode *NFAStart);
int ConvertNFAToDFA(struct _NFAType *NFA);
extern struct _DFANode *DFAStates;
extern int DFATop;