Class FormulaToken
Represents a lexical token in a formula. 代表公式中的一個語彙基元。
public class FormulaToken
- Inheritance
-
FormulaToken
- Inherited Members
Constructors
FormulaToken(TokenType, string, int)
Represents a lexical token in a formula. 代表公式中的一個語彙基元。
public FormulaToken(TokenType type, string value, int startIndex)
Parameters
typeTokenTypeThe token type. / 語彙基元型別。
valuestringThe token content. / 語彙基元內容。
startIndexintThe starting index in the original formula string. / 原始公式字串中的起始索引位置。
Properties
StartIndex
Gets the starting index of the token in the original formula string. 取得語彙基元在原始公式字串中的起始索引。
public int StartIndex { get; }
Property Value
Type
Gets the token type. 取得語彙基元的型別。
public TokenType Type { get; }
Property Value
Value
Gets the token string value. 取得語彙基元的字串值。
public string Value { get; }