xsawyerx / guacamole

Guacamole is a parser toolkit for Standard Perl. It provides fully static BNF-based parsing capability to a reasonable subset of Perl.
https://metacpan.org/pod/Guacamole
20 stars 8 forks source link

Fix handling of empty anonhash #84

Closed vickenty closed 4 years ago

vickenty commented 4 years ago

{} in block or expression context should be parsed as an empty hash literal instead of a block.

LitHash and Block are split into empty and non-empty variants.

LitHashEmpty is added as a valid NonBraceLiteral, and corresponding invocations of Block were replaced with BlockNonEmpty.