peggyjs / peggy

Peggy: Parser generator for JavaScript
https://peggyjs.org/
MIT License
906 stars 64 forks source link

Add ExponentiationExpression rule to javascript.pegjs #446

Closed frostburn closed 8 months ago

frostburn commented 8 months ago

Implement exponentiation with right associativity i.e. x**y**z = x**(y**z).

hildjj commented 8 months ago

LGTM. Are you in the AUTHORS file already? If not, please add yourself, and tack that on to this commit. Also, please make a CHANGELOG.md entry.

frostburn commented 8 months ago

Done. There was no associated ticket as this came up spontaneously when adapting the example grammar.

hildjj commented 8 months ago

Please use the PR# as the link for changes that don't have an associated issue.

frostburn commented 8 months ago

Gotcha. :ok_hand: Fixed.