Skip to content

Commit

Permalink
Adapt to OCaml trunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
alainfrisch committed Jul 8, 2016
1 parent 93d003f commit f70ca1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rewriter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ let () =
| `Struct ->
let pstr = Parse.implementation lexer in
let pstr = Pparse.apply_rewriters (* ~restore:true *) ~tool_name:!tool_name
Config.ast_impl_magic_number pstr in
Pparse.Structure pstr in
Pprintast.structure fmt pstr;
Format.pp_print_newline fmt ()
| `Sig ->
let psig = Parse.interface lexer in
let psig = Pparse.apply_rewriters (* ~restore:true *) ~tool_name:!tool_name
Config.ast_intf_magic_number psig in
Pparse.Signature psig in
Pprintast.signature fmt psig;
Format.pp_print_newline fmt ())
with exn ->
Expand Down

0 comments on commit f70ca1d

Please sign in to comment.