alex / alex/rply

Equivalent of `nonassoc` precedence

オープン
#109 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
391
フォーク
62
PR マージ指標
30日以内にマージされた PR はありません

説明

I want to be able to parse expressions like `-5` and `-(2 + 3 * 4)`. At the moment, I'm doing this with two separate rules, but since `-5` is the same as `-(5)` I want to be able to use the same rule for both situations as the parentheses in `-5` are implicit. In PLY, there is the `nonassoc` precedence, so I was wondering if such a thing also existed in RPLY?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。