bjpop / language-python

A parser for Python 2.x and 3.x written in Haskell
157 stars 46 forks source link

Tuples should print with parens #56

Closed augustss closed 4 years ago

augustss commented 4 years ago

Try

prettyText $ let one = Int 1 "1" () in Tuple [one, Tuple [one] ()] ()

It evaluates to

"1, 1,"

which is nonsensical.

bjpop commented 4 years ago

Closing as per: Closing as per: https://github.com/bjpop/language-python/issues/59