Protean-Labs / mesh

The Mesh Engine that implements the Mesh Language, a computational language for web3.
Apache License 2.0
1 stars 0 forks source link

Fix empty module bug #74

Open cvauclair opened 3 years ago

cvauclair commented 3 years ago

Description

Since adding parsing support for empty record expressions (i.e.: {}), defining an empty module (see below) raises a parsing error.

module M = {};

Potential solution

Make the empty record into a literal (instead of an expression) which would allow reusing the same token for empty modules and empty records (similar to fun_def and UNIT)