_Core/Lang/Parser/ParserState.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ComLib.Lang
{
/// <summary>
/// Used to hold the state of the parser.
/// </summary>
public class ParserState
{
/// <summary>
/// The last statement.
/// </summary>
public Stmt LastStmt;
/// <summary>
/// Last expression
/// </summary>
public Expr LastExpPart;
/// <summary>
/// Number of times a member access is performed during parsing.
/// </summary>
public int MemberAccess;
/// <summary>
/// Nested statement.
/// </summary>
public int StatementNested;
/// <summary>
/// Stack count for parsing currently being inside a index expression.
/// </summary>
public int IndexExp;
/// <summary>
/// Stack count for parsing currently being inside a function call expression.
/// </summary>
public int FunctionCall;
/// <summary>
/// Stack count for parsing currently being inside a conditional e.g. parenthesis (condition)
/// </summary>
public int Conditional;
/// <summary>
/// Used to keep track of number of consequetive expressions.
/// </summary>
public int ExpressionCount;
后面还有 30 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
