mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
重写脚本解释器的实现,提高其可读性。
This commit is contained in:
@@ -174,6 +174,15 @@ namespace Serein.Script
|
||||
return nextToken; // 返回下一个 token
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重置Lexer
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
this._row = 0;
|
||||
this._index = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据 token 重置Lexer
|
||||
/// </summary>
|
||||
@@ -184,6 +193,7 @@ namespace Serein.Script
|
||||
this._index = token.StartIndex;
|
||||
}
|
||||
|
||||
|
||||
internal Token NextToken()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user