Table of Contents

Class AssociativityGroup

Namespace
Farkle.Builder.OperatorPrecedence
Assembly
Farkle.dll

Represents a collection of symbols in a grammar to be built that have the same precedence and a specific type of associativity.

public class AssociativityGroup
Inheritance
AssociativityGroup
Derived

Constructors

AssociativityGroup(AssociativityType, params ImmutableArray<object>)

Creates an AssociativityGroup.

public AssociativityGroup(AssociativityType associativityType, params ImmutableArray<object> symbols)

Parameters

associativityType AssociativityType

The AssociativityType of the group.

symbols ImmutableArray<object>

The symbols that belong to the group.

AssociativityGroup(AssociativityType, params object[])

Creates an AssociativityGroup.

public AssociativityGroup(AssociativityType associativityType, params object[] symbols)

Parameters

associativityType AssociativityType

The AssociativityType of the group.

symbols object[]

The symbols that belong to the group.

Properties

AssociativityType

The AssociativityType of this group.

public AssociativityType AssociativityType { get; }

Property Value

AssociativityType

Symbols

The symbols that belong to this group.

public ImmutableArray<object> Symbols { get; }

Property Value

ImmutableArray<object>

Remarks

The items of this array can correspond to the following kinds of symbols:

Any other object will be ignored.

See Also