An ordered heterogeneous collection of parser entities.

remarks

The constructor retains the supplied array and its element references. getElements likewise exposes the live backing array. Use copy for an independent collection; it copies every contained parser entity. each and indexed assignment mutate the collection. Evaluation and expansion operate on a deep copy. Equality and relational predicates compare corresponding elements and return false for a non-Collection or length mismatch; these component-wise predicates do not define a lexicographic ordering for heterogeneous values.

Members

__get__(indices: number[]): ParserEntityMethod

Returns the element at the given index.

Parameters

NameTypeDescription
indicesnumber[]A single-element array [i]

Returns

ParserEntity

__set__(indices: number[], value: ParserEntity): voidMethod

Sets the element at the given index.

Parameters

NameTypeDescription
indicesnumber[]A single-element array [i]
valueParserEntityThe value to set

Returns

void

count(): numberMethod

No description is available yet.

Returns

number

dataType: "COL"Property

No description is available yet.

dimensions(): number[]Method

No description is available yet.

Returns

number[]

dimensionsMatch(x: ParserEntity): xMethod

No description is available yet.

Parameters

NameTypeDescription
xParserEntity

Returns

x

elements: ParserEntity[]Property

No description is available yet.

eq(x: ParserEntity): booleanMethod

No description is available yet.

Parameters

NameTypeDescription
xParserEntity

Returns

boolean

evaluate(): CollectionMethod

Evaluates a copied collection, leaving this one unchanged.

Returns

Collection

getElements(): ParserEntity[]Method

Returns the live backing array; mutations to it affect this Collection.

Returns

ParserEntity[]

gt(x: ParserEntity): booleanMethod

No description is available yet.

Parameters

NameTypeDescription
xParserEntity

Returns

boolean

gte(x: ParserEntity): booleanMethod

No description is available yet.

Parameters

NameTypeDescription
xParserEntity

Returns

boolean

isCollection(obj: unknown): objMethod

No description is available yet.

Parameters

NameTypeDescription
objunknown

Returns

obj

isEnumerable: booleanProperty

No description is available yet.

lt(x: ParserEntity): booleanMethod

No description is available yet.

Parameters

NameTypeDescription
xParserEntity

Returns

boolean

lte(x: ParserEntity): booleanMethod

No description is available yet.

Parameters

NameTypeDescription
xParserEntity

Returns

boolean

precision: numberProperty

No description is available yet.

symbolicAccessor: Expression[]Property

Public index expressions retained when bracket access cannot yet be resolved. This state belongs to a copied structured entity, never the stored source value.

symbolicTarget: ExpressionProperty

Original symbolic target used to render and later re-evaluate bracket access.

text(): stringMethod

No description is available yet.

Returns

string

toString(): stringMethod

No description is available yet.

Returns

string

withSymbolicAccessor(target: Expression, indices: Expression[]): CollectionMethod

Returns a copied structured entity carrying an unresolved bracket access. Existing accessor state is retained so chained symbolic access can be extended.

Parameters

NameTypeDescription
targetExpression
indicesExpression[]

Returns

Collection