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

do{1} is parsed to two options (block and hashref) #11

Closed xsawyerx closed 4 years ago

xsawyerx commented 4 years ago

Because do is now capable of being parsed with Block or with Expression, do {1} is parsed twice:

We need to figure out #2 (block and hash disambiguation) in order to resolve which of these is.

(It is pretty cool that it shows it could be either this or that.)

xsawyerx commented 4 years ago

Resolved using NonBraceExpression.