Skip to content

Commit

Permalink
added reverse application |>. removed bare pat tuple for now bc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
disconcision committed Nov 4, 2024
1 parent 2ec4d2f commit e5cf2ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hazel/Grammar.re
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module Pat = {
//ap
p(seq([pat, brc(L, "("), pat, brc(R, ")")])),
//bare tuple
p(~a=L, seq([pat, c(","), pat])),
//p(~a=L, seq([pat, c(","), pat])),
p(operand),
];
};
Expand Down Expand Up @@ -156,6 +156,8 @@ module Exp = {
p(seq([neg_op, exp])),
//ap
p(fn_ap),
//Reverse-ap
p(~a=L, seq([exp, c("|>"), exp])),
p(operand),
];
};
Expand Down

0 comments on commit e5cf2ce

Please sign in to comment.