Closed vickenty closed 4 years ago
sort $a + $b
parses as both:
# via OpKeywordSort VarScalar OpListKeywordArg (sort (varscalar $a) (oplistkeywordarg (exprunary + $b))) # via OpKeywordSort OpListKeywordArgNonBrace (sort (oplistkeywordargnonbrace (expradd '+' (varscalar $a) (varscalar $b)))
perl disambiguates to the latter.
This can be fixed with a new expression variant that does not start with an unary operator, similar to NonBraceExpr variants, but I'm don't like the idea of duplicating the whole table again.
NonBraceExpr
Resolved by #81.
parses as both:
perl disambiguates to the latter.
This can be fixed with a new expression variant that does not start with an unary operator, similar to
NonBraceExpr
variants, but I'm don't like the idea of duplicating the whole table again.