Skip to content

Commit

Permalink
tweaked grammar: adding dot-angle, dot-bracket, and bare-bracket ('[]…
Browse files Browse the repository at this point in the history
…') forms to the operator-function production
  • Loading branch information
getify committed Apr 27, 2024
1 parent 6050fd5 commit 4b2fda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ExprNoBlockGroupedAsOpt := ExprNoBlock | GroupedExprNoBlockAsOpt;
AsAnnotationExpr := ":as" WhSp+ NamedType;
OpFuncExpr := "(" Op "'"? ")";
OpFuncExpr := "(" (Op | DotAngleExpr | DotBracketExpr | "[]") "'"? ")";
ExprAccessExpr := (ExprNoBlock | GroupedExprAsOpt) (SingleAccessExpr | MultiAccessExpr);
AssignmentExpr := (Identifier | IdentifierSingleExpr) WhSp* ":=" WhSp* ExprAsOpt;
Expand Down

0 comments on commit 4b2fda0

Please sign in to comment.