Table of Contents

Struct FormulaParserToken

Namespace
OdfKit.Formula
Assembly
OdfKit.dll

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

type FormulaTokenType

The token type. / 語彙基元型別。

span ReadOnlySpan<char>

The character span for the token. / 語彙基元的字元範圍。

numValue double

The numeric value. / 數值。

boolValue bool

The Boolean value. / 布林值。

Properties

BoolValue

Gets the Boolean value for the token. 取得語彙基元的布林值。

public bool BoolValue { get; }

Property Value

bool

NumberValue

Gets the double-precision numeric value for the token. 取得語彙基元的雙倍精確度浮點數數值。

public double NumberValue { get; }

Property Value

double

Span

Gets the character span for the token. 取得語彙基元的字元範圍。

public ReadOnlySpan<char> Span { get; }

Property Value

ReadOnlySpan<char>

Type

Gets the token type. 取得語彙基元的型別。

public FormulaTokenType Type { get; }

Property Value

FormulaTokenType