Ruby: pm_binding_powers_t Struct Reference

Ruby 3.4.3p32 (2025-04-14 revision d0b7e5b6a04bde21ca483d20a1546b28b401c2d4)

Data Fields
pm_binding_powers_t Struct Reference

This struct represents a set of binding powers used for a given token. More...

## Data Fields
pm_binding_power_t | left
| The left binding power.
pm_binding_power_t | right
| The right binding power.
bool | binary
| Whether or not this token can be used as a binary operator.
bool | nonassoc
| Whether or not this token can be used as non-associative binary operator.

## Detailed Description

This struct represents a set of binding powers used for a given token.

They are combined in this way to make it easier to represent associativity.

Definition at line 12943 of file prism.c.

## Field Documentation

## ◆ binary

bool pm_binding_powers_t::binary

Whether or not this token can be used as a binary operator.

Definition at line 12951 of file prism.c.

## ◆ left

pm_binding_power_t pm_binding_powers_t::left

The left binding power.

Definition at line 12945 of file prism.c.

## ◆ nonassoc

bool pm_binding_powers_t::nonassoc

Whether or not this token can be used as non-associative binary operator.

Non-associative operators (e.g. in and =>) need special treatment in parse_expression.

Definition at line 12957 of file prism.c.

## ◆ right

pm_binding_power_t pm_binding_powers_t::right

The right binding power.

Definition at line 12948 of file prism.c.

The documentation for this struct was generated from the following file:

- prism/prism.c