effectfully / tiny-lang

BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Pretty-printing #30

Open effectfully opened 5 years ago

effectfully commented 5 years ago

Currently we just dump expressions as Strings using some custom functions. We should use a proper pretty-printing library and be agnostic about the final string type. Precedence and associativity of operators should also be taken into account.

I've started writing a suitable library (mostly by extracting various pieces from the plutus-core codebase).

jakzale commented 4 years ago

Add a separate pretty printing pass for golden testing.

jakzale commented 4 years ago

@effectfully was the pretty printing library released?

effectfully commented 4 years ago

Nope, but we can directly depend on the prettyprinter-configurable subfolder of the Plutus repo.

jakzale commented 4 years ago

Urgh, got hit by https://github.com/commercialhaskell/stack/issues/5004

Do you have anything against git submodules?