Farkle


ITransformerContext Type

A type that is passed to the transformers and provides additional information about the terminal being transformed.

It is explicitly implemented by CharStream but casting it to this type is not recommended. Using this interface outside the scope of a transformer is not recommended either.

Instance members

Instance member Description

this.EndPosition

Full Usage: this.EndPosition

Returns: inref<Position>
Modifiers: abstract

The position of the last character of the token.

In C# this property is shown as a read-write ref due to compiler limitations. It will be changed to a readonly ref at a future non-major release.

Returns: inref<Position>

this.ObjectStore

Full Usage: this.ObjectStore

Returns: IDictionary<string, obj>
Modifiers: abstract

An associative collection of objects that can be indexed by a case-sensitive string.

The content of the object store is scoped to the CharStream the tokens come from.

Returns: IDictionary<string, obj>

this.StartPosition

Full Usage: this.StartPosition

Returns: inref<Position>
Modifiers: abstract

The position of the first character of the token.

In C# this property is shown as a read-write ref due to compiler limitations. It will be changed to a readonly ref at a future non-major release.

Returns: inref<Position>