Skip to content

Commit

Permalink
show how it looks in original syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
duckpilot committed Sep 3, 2010
1 parent 9786d0b commit 7daffd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _code/camlp4-syntax-extensions/pa_let_try/pa_let_try.ml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ struct
<:match_case< $p$ when $w$ -> fun () -> $e$ >> <:match_case< $p$ when $w$ -> fun () -> $e$ >>
| mc -> mc) | mc -> mc)
(Ast.list_of_match_case a []) in (Ast.list_of_match_case a []) in
<:expr< (try let $rec:r$ $bi$ in fun () -> do { $e$ } with [ $list:a$ ])() >> ] <:expr< (try let $rec:r$ $bi$ in fun () -> do { $e$ } with [ $list:a$ ])() >>
(* original syntax:
let e = Ast.ExSeq (Ast.loc_of_expr e, e) in
<:expr< (try let $rec:r$ $bi$ in fun () -> $e$ with $list:a$)() >>
*)
]
]; ];
END END
end end
Expand Down

0 comments on commit 7daffd9

Please sign in to comment.