_Core/Lang/Parser/PluginSupport/StmtPlugin.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ComLib.Lang
{
/// <summary>
/// A combinator to extend the parser
/// </summary>
public class StmtPlugin : ExprPluginBase, IStmtPlugin
{
/// <summary>
/// Whether or not this statement supports a terminator like semicolon ;.
/// </summary>
protected bool _supportsTerminator;
/// <summary>
/// Whether or not this statement supports a block
/// </summary>
protected bool _supportsBlock;
/// <summary>
/// Whether or not this is a system level plugin.
/// </summary>
protected bool _isSystemLevel;
/// <summary>
/// Initialize
/// </summary>
public StmtPlugin()
{
_hasStatementSupport = true;
}
/// <summary>
/// Whether or not the statement plugin support a terminator such as ; or new line.
/// </summary>
public bool SupportsTerminator { get { return _supportsTerminator; } }
/// <summary>
/// Whether or not the statement plugin supports a block such as { ... } which can hold multipl statements.
/// </summary>
public bool SupportsBlock { get { return _supportsBlock; } }
/// <summary>
/// Whether or not this a system level plugin.
/// </summary>
public bool IsSystemLevel { get { return _isSystemLevel; } }
/// <summary>
/// The context of the script.
/// </summary>
后面还有 35 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
