Sword-Smith / Sword

Sword — A financial derivative language for the blockchain
MIT License
29 stars 2 forks source link

When migrating parser to Megaparsec, use TernR for ternary if-then-else #43

Open sshine opened 3 years ago

sshine commented 3 years ago

First, why. Second, this was already done twice.

The task is to use makeExprParser's TernR for dealing with ternary if-then-else.