Skip to content

TapeLiteral

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Retains a normalized setting operand and its original source spelling.

csharp
public sealed record TapeLiteral : IEquatable<TapeLiteral>

Inheritance

ObjectTapeLiteral

Implements

Constructors

TapeLiteral(string, string, TapeTokenKind, TapeSourceSpan)

Retains a normalized setting operand and its original source spelling.

Parameters:

  • Value (String): The normalized, unconverted value.
  • RawText (String): The original source spelling.
  • Kind (TapeTokenKind): The first operand token's lexical category.
  • Span (TapeSourceSpan): The operand's source range.
csharp
public TapeLiteral(string Value, string RawText, TapeTokenKind Kind, TapeSourceSpan Span)

Properties

Kind

The first operand token's lexical category.

Returns: TapeTokenKind

csharp
public TapeTokenKind Kind { get; init; }

RawText

The original source spelling.

Returns: String

csharp
public string RawText { get; init; }

Span

The operand's source range.

Returns: TapeSourceSpan

csharp
public TapeSourceSpan Span { get; init; }

Value

The normalized, unconverted value.

Returns: String

csharp
public string Value { get; init; }

Remarks

A syntactically accepted value need not be a valid runtime number, duration, or JSON object.

Released under the MIT License.