Skip to content

T_Cyjb_Compilers_Parsers_ProductionData_1

CYJB edited this page Mar 23, 2024 · 7 revisions

ProductionData(T) 类

表示产生式的数据。

继承层次

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

语法

C#

public sealed class ProductionData<T>
where T : struct, new()

类型参数

 

T
词法单元标识符的类型,一般是一个枚举类型。
  The ProductionData(T) type exposes the following members.

构造函数

 

名称 说明
公共方法 ProductionData(T) 使用产生式的数据初始化 ProductionData(T) 类的新实例。
  Back to Top

属性

 

名称 说明
公共属性 Action 获取产生式对应的动作。
公共属性 Body 获取产生式体。
公共属性 BodySize 获取产生式体的大小。
公共属性 Head 获取产生式头。
公共属性 HeadIndex 获取产生式头的索引。
  Back to Top

方法

 

名称 说明
公共方法 Equals Determines whether the specified object is equal to the current object. (继承自 Object。)
公共方法 GetHashCode Serves as the default hash function. (继承自 Object。)
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
公共方法 ToString 返回当前对象的字符串表示形式。 (重写 Object.ToString().)
  Back to Top

参见

Reference

Cyjb.Compilers.Parsers 命名空间

Clone this wiki locally