Skip to content

TapeTokenReader

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Provides forward-only access to Tape tokens for syntax recognition.

csharp
public sealed class TapeTokenReader

Inheritance

ObjectTapeTokenReader

Properties

Current

Gets the next unread token.

Returns: TapeToken

csharp
public TapeToken Current { get; }

Methods

Peek(int)

Gets a token without consuming input.

Parameters:

  • offset (Int32): The non-negative lookahead offset; zero denotes the current token.

Returns: TapeToken

The requested token, or the end-of-input token.

csharp
public TapeToken Peek(int offset = 0)

Read()

Consumes and returns the current token; at EOF, returns EOF without advancing.

Returns: TapeToken

The consumed token.

csharp
public TapeToken Read()

Released under the MIT License.