Skip to content

T_Cyjb_Compilers_Parsers_LRParser_1

CYJB edited this page Mar 23, 2024 · 3 revisions

LRParser(T) 类

表示 LR 词法单元分析器。

继承层次

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

语法

C#

public sealed class LRParser<T> : ITokenParser<T>, 
	IDisposable
where T : struct, new()

类型参数

 

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

属性

 

名称 说明
公共属性 SharedContext 获取或设置共享的上下文对象。
公共属性 Status 获取语法分析器的解析状态。
  Back to Top

方法

 

名称 说明
公共方法 Cancel 取消后续语法分析。
公共方法 Dispose 执行与释放或重置非托管资源相关的应用程序定义的任务。
公共方法 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。)
公共方法 Load 加载指定的词法分析器。
公共方法 Parse() 使用默认的目标类型分析当前词法单元序列。
公共方法 Parse(T) 使用指定的目标类型分析当前词法单元序列。
公共方法 Reset 重置语法分析的状态,允许在结束/取消后继续进行分析。
公共方法 ToString Returns a string that represents the current object. (继承自 Object。)
  Back to Top

事件

 

名称 说明
公共事件 ParseError 语法分析错误的事件。
  Back to Top

参见

Reference

Cyjb.Compilers.Parsers 命名空间

Clone this wiki locally