Skip to content

M_Cyjb_Compilers_Parsers_ParserController_1_Peek

CYJB edited this page Mar 23, 2024 · 7 revisions

ParserController(T).Peek 方法

读取后续词法单元,但不会提升输入流的位置。

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

语法

C#

protected Token<T> Peek(
	int offset = 0
)

参数

 

offset (Optional)
Type: System.Int32
读取的词法单元偏移。

返回值

Type: Token(T)
要读取的词法单元。

参见

Reference

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

Clone this wiki locally