Skip to content

T_Cyjb_Compilers_Parsers_ParserStateData_1

CYJB edited this page Mar 23, 2024 · 7 revisions

ParserStateData(T) 类

表示 LR 语法分析器的状态数据。

继承层次

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

语法

C#

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

类型参数

 

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

构造函数

 

名称 说明
公共方法 ParserStateData(T) 使用指定的动作字典和默认动作初始化 ParserStateData(T) 类的新实例。
  Back to Top

属性

 

名称 说明
公共属性 Actions 获取当前状态的动作字典。
公共属性 DefaultAction 获取当前状态的默认动作。
公共属性 Expecting 获取当前状态的预期词法单元类型集合。
公共属性 RecoverIndex 获取当前状态用于错误恢复的产生式定点。
公共属性 RecoverProduction 获取当前状态用于错误恢复的产生式。
  Back to Top

方法

 

名称 说明
公共方法 Equals Determines whether the specified object is equal to the current object. (继承自 Object。)
受保护的方法 Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。)
公共方法 GetAction 返回与指定终结符关联的动作。
公共方法 GetHashCode Serves as the default hash function. (继承自 Object。)
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
受保护的方法 MemberwiseClone Creates a shallow copy of the current Object. (继承自 Object。)
公共方法 ToString Returns a string that represents the current object. (继承自 Object。)
  Back to Top

参见

Reference

Cyjb.Compilers.Parsers 命名空间

Clone this wiki locally