Skip to content

M_Cyjb_Compilers_Parsers_ProductionData_1__ctor

CYJB edited this page Mar 23, 2024 · 7 revisions

ProductionData(T) 构造函数

使用产生式的数据初始化 ProductionData(T) 类的新实例。

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

语法

C#

public ProductionData(
	int headIndex,
	T head,
	Delegate? action,
	params T[] body
)

参数

 

headIndex
Type: System.Int32
产生式头的索引。
head
Type: T
产生式头。
action
Type: System.Delegate
产生式对应的动作。
body
Type: T[]
产生式体。

参见

Reference

ProductionData(T) 类
Cyjb.Compilers.Parsers 命名空间

Clone this wiki locally