rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Enable Uncurried Mode by Default for Parser Development CLI

Open IwanKaramazow opened this issue 1 year ago • 1 comments

When debugging the AST through the parser's development CLI, there is a discrepancy between calling dune exec bsc and dune exec res_parser. The former defaults to uncurried mode, while the latter does not.

This commit enables uncurried mode by default for the parser development CLI. If needed, this can be optionally disabled by using the -legacy-curried flag.

IwanKaramazow avatar May 23 '24 15:05 IwanKaramazow

This also influences the parser/printer tests. I'll change this PR to "enable uncurried by default for the parser/printer tests"

IwanKaramazow avatar May 23 '24 15:05 IwanKaramazow

I think this is obsolete now that v12 is uncurried only and Config.uncurried is gone.

cknitt avatar Sep 04 '24 07:09 cknitt