plow-technologies / inferno

A statically-typed functional scripting language
MIT License
4 stars 1 forks source link

Add tests for type annotations, fix parser/prettyprinter bugs #92

Closed siddharth-krishna closed 1 year ago

siddharth-krishna commented 1 year ago

This adds tests for the new type annotations syntax, and fixes the parser and pretty printer (and arbitrary instances) so that the automatic QuickCheck test "parser and pretty printer are inverses" passes.

With this PR, pretty printer (and thus LSP) shows enum types as bool{#false,#true} instead of just bool. But this is needed to round trip with parser.