跳至內容

用戶: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;