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

eval("string") does not parse #106

Closed haukex closed 4 years ago

haukex commented 4 years ago

As the title says, Guacamole appears to only know about eval BLOCK, not eval(STRING). eval { die() }; parses, eval("1+2"); does not. If this is intentional, then it should probably be documented in standard.pm.

Not sure if related, but eval {}; fails to parse as well.

xsawyerx commented 4 years ago

Thank you for spotting it!

xsawyerx commented 4 years ago

Fixed in 0.007, just released.

haukex commented 4 years ago

Thank you!