Farkle


AssociativityGroup Type

A group of symbols that have the same associativity and precedence. This class and its descendants accept arrays of objects that correspond to symbols.

Terminals and things that will turn into terminals correspond to their designtime Farkle. Literals also correspond to their content as a string and productions correspond to the object passed or returned from the WithPrecedence family of functions in production builders.

Prior to Farkle 6.3.0, using the same terminal with multiple designtime Farkles (such as the original and a renamed one) would cause undefined behavior.

Constructors

Constructor Description

AssociativityGroup(assocType, symbols)

Full Usage: AssociativityGroup(assocType, symbols)

Parameters:
Returns: AssociativityGroup
assocType : AssociativityType
symbols : obj[]
Returns: AssociativityGroup

AssociativityGroup(assocType, symbols)

Full Usage: AssociativityGroup(assocType, symbols)

Parameters:
Returns: AssociativityGroup
assocType : AssociativityType
symbols : obj seq
Returns: AssociativityGroup

Instance members

Instance member Description

this.AssociativityType

Full Usage: this.AssociativityType

Returns: AssociativityType

The group's symbols' associativity.

Returns: AssociativityType