Skip to content

TapeToken

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Represents a source token without escape decoding.

csharp
public sealed record TapeToken : IEquatable<TapeToken>

Inheritance

ObjectTapeToken

Implements

Constructors

TapeToken(TapeTokenKind, string, string, TapeSourceSpan)

Represents a source token without escape decoding.

Parameters:

  • Kind (TapeTokenKind): The lexical category.
  • Value (String): The token value with delimiters removed where applicable.
  • RawText (String): The original token spelling, including delimiters.
  • Span (TapeSourceSpan): The token's source range.
csharp
public TapeToken(TapeTokenKind Kind, string Value, string RawText, TapeSourceSpan Span)

Properties

Kind

The lexical category.

Returns: TapeTokenKind

csharp
public TapeTokenKind Kind { get; init; }

RawText

The original token spelling, including delimiters.

Returns: String

csharp
public string RawText { get; init; }

Span

The token's source range.

Returns: TapeSourceSpan

csharp
public TapeSourceSpan Span { get; init; }

Value

The token value with delimiters removed where applicable.

Returns: String

csharp
public string Value { get; init; }

Released under the MIT License.