Skip to content

Commit

Permalink
Delete matches syntax
Browse files Browse the repository at this point in the history
but keep other changes
  • Loading branch information
tjammer committed Dec 4, 2024
1 parent 14517e9 commit 978c0d1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3,291 deletions.
4 changes: 0 additions & 4 deletions lib/parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
%token Fmt
%token Hbar
%token Match
%token Matches
%token Quote
%token Type
%token External
Expand All @@ -74,7 +73,6 @@

%nonassoc Ctor

%left Matches
%left And Or
%left Eq_op
%left Cmp_op
Expand Down Expand Up @@ -288,8 +286,6 @@ expr_no_ident:
| ident = infix { Var ($loc(ident), ident) }
| lit = lit { Lit ($loc, lit) }
| a = expr; bop = binop; b = expr { Bop ($loc, bop, a, b) }
/* | a = expr; Hbar; b = expr { Bop ($loc, And, a, b) } */
| a = expr; Matches; pattern { Bop ($loc, And, a, Lit ($loc, Unit)) }
| a = expr; infix = infix; b = expr
{ let a = {apass = Dnorm; aloc = $loc(a); aexpr = a} in
let b = {apass = Dnorm; aloc = $loc(b); aexpr = b} in
Expand Down
Loading

0 comments on commit 978c0d1

Please sign in to comment.