Struct FormulaParserToken
Represents a token consumed by the formula parser. 代表公式剖析器使用的語彙基元。
public readonly ref struct FormulaParserToken
- Inherited Members
Constructors
FormulaParserToken(FormulaTokenType, ReadOnlySpan<char>, double, bool)
Represents a token consumed by the formula parser. 代表公式剖析器使用的語彙基元。
public FormulaParserToken(FormulaTokenType type, ReadOnlySpan<char> span, double numValue = 0, bool boolValue = false)
Parameters
typeFormulaTokenTypeThe token type. / 語彙基元型別。
spanReadOnlySpan<char>The character span for the token. / 語彙基元的字元範圍。
numValuedoubleThe numeric value. / 數值。
boolValueboolThe Boolean value. / 布林值。
Properties
BoolValue
Gets the Boolean value for the token. 取得語彙基元的布林值。
public bool BoolValue { get; }
Property Value
NumberValue
Gets the double-precision numeric value for the token. 取得語彙基元的雙倍精確度浮點數數值。
public double NumberValue { get; }
Property Value
Span
Gets the character span for the token. 取得語彙基元的字元範圍。
public ReadOnlySpan<char> Span { get; }
Property Value
Type
Gets the token type. 取得語彙基元的型別。
public FormulaTokenType Type { get; }