Guacamole is a parser toolkit for Standard Perl. It provides fully static BNF-based parsing capability to a reasonable subset of Perl.
20
stars
8
forks
source link
do{1} is parsed to two options (block and hashref) #11
Closed
xsawyerx closed 4 years ago
Because
do
is now capable of being parsed withBlock
or withExpression
,do {1}
is parsed twice:Block
withLiteral
Value
of1
Expression
withLitHash
literal hash referenceWe 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.)