Skip to content

M_Cyjb_Compilers_Lexers_Nfa_BuildDFA

CYJB edited this page Mar 23, 2024 · 7 revisions

Nfa.BuildDFA 方法

根据当前的 NFA 构造 DFA,采用子集构造法。

Namespace: Cyjb.Compilers.Lexers
Assembly: Cyjb.Compilers (in Cyjb.Compilers.dll) Version: 1.0.20+d347ea0351607fb282fdf60a5301f9cccb3ab27e

语法

C#

public Dfa BuildDFA(
	int headCnt,
	bool rejectable = false
)

参数

 

headCnt
Type: System.Int32
头节点的个数。
rejectable (Optional)
Type: System.Boolean
是否用到了 Reject 动作。

返回值

Type: Dfa
构造得到的最简 DFA。

参见

Reference

Nfa 类
Cyjb.Compilers.Lexers 命名空间

Clone this wiki locally