Table of Contents

Interface TextReaderLookahead

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

Read-only forward lookahead abstraction over lexer input.

public interface TextReaderLookahead
Extension Methods

Properties

Column

Current 1-based column number.

int Column { get; }

Property Value

int

IsEnd

Indicates whether the input is at end of stream.

bool IsEnd { get; }

Property Value

bool

Line

Current 1-based line number.

int Line { get; }

Property Value

int

Position

Current zero-based absolute position in the stream.

int Position { get; }

Property Value

int

Methods

Peek(int)

Peeks the character at the specified lookahead offset. Returns -1 when end of input is reached.

int Peek(int offset)

Parameters

offset int

Zero-based lookahead offset.

Returns

int