_Core/Lang/Parser/PluginSupport/ExprPluginBase.cs

(开头部分) 5KB

这里只显示每个文件的开头 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 ExprPluginBase : IExprBasePlugin
    {
        /// <summary>
        /// Used to uniquely identify a plugin.
        /// </summary>
        protected string _id;


        /// <summary>
        /// The token iterator
        /// </summary>
        protected TokenIterator _tokenIt;


        /// <summary>
        /// Tokens to handle the expression.
        /// </summary>
        protected string[] _startTokens;


        /// <summary>
        /// The core parser.
        /// </summary>
        protected Parser _parser;


        /// <summary>
        /// Whether or not this combinator can be made into a statemnt.
        /// </summary>
        protected bool _hasStatementSupport = false;


        /// <summary>
        /// Whether or not to handle a new line as end of this expression plugin and for statement support.
        /// </summary>
        protected bool _handleNewLineAsEndOfExpression = false;


        /// <summary>
        /// Whether or not this combinator can be made into a statemnt.
        /// </summary>
        protected bool _canHandleExpression = false;


        /// <summary>
        /// A number given to each plugin to give it an ordering compared to other plugins.
        /// </summary>
        protected int _precedence = 1;
        

后面还有 138 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。