Skip to content

Commit

Permalink
Update the cmm parser in the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
chambart committed Oct 12, 2016
1 parent 7c2fe26 commit 343ca8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/tests/asmcomp/parsecmm.mly
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ expr:
match $3 with
Cconst_int x when x <> 0 -> $4
| _ -> Cifthenelse($3, $4, (Cexit(0,[]))) in
Ccatch([0, [], Cloop body], Ctuple []) }
Ccatch(Recursive, [0, [], Cloop body], Ctuple []) }
| LPAREN EXIT IDENT exprlist RPAREN
{ Cexit(find_label $3, List.rev $4) }
| LPAREN CATCH sequence WITH catch_handlers RPAREN
{ let handlers = $5 in
List.iter (fun (_, l, _) -> List.iter unbind_ident l) handlers;
Ccatch(handlers, $3) }
Ccatch(Recursive, handlers, $3) }
| EXIT { Cexit(0,[]) }
| LPAREN TRY sequence WITH bind_ident sequence RPAREN
{ unbind_ident $5; Ctrywith($3, $5, $6) }
Expand Down

0 comments on commit 343ca8f

Please sign in to comment.