Closed dmjio closed 6 years ago
Thanks for spotting this and your PR!
I decided to fix it the other way round, since your proposed grammar is ambiguous. There was another problem in the original example: Num
will possibly conflict with Haskell's Num
, thus I changed it to Number
.
See ce7fe1fd08d9d808c14ff626c321218c5b73e38b.
Adjust
Exp
definition.Without this change, the ADTs produced will be:
instead of