Prism Ruby parser
|
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. | |
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.
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.