Skip to content

M_Cyjb_Compilers_Lexers_TerminalData_1__ctor

CYJB edited this page Mar 23, 2024 · 8 revisions

TerminalData(T) 构造函数

使用指定的终结符信息初始化 TerminalData(T) 类的新实例。

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

语法

C#

public TerminalData(
	T? kind = null,
	Object? value = null,
	Delegate? action = null,
	int? trailing = null,
	bool useShortest = false
)

参数

 

kind (Optional)
Type: System.Nullable(T)
终结符的类型。
value (Optional)
Type: System.Object
终结符的值。
action (Optional)
Type: System.Delegate
终结符的动作。
trailing (Optional)
Type: System.Nullable(Int32)
向前看信息。
useShortest (Optional)
Type: System.Boolean
是否使用最短匹配。

参见

Reference

TerminalData(T) 类
Cyjb.Compilers.Lexers 命名空间

Clone this wiki locally