Skip to content

Commit

Permalink
Merge pull request #12 from whitequark/master
Browse files Browse the repository at this point in the history
Restore compatibility with 4.02
  • Loading branch information
alainfrisch committed Aug 7, 2014
2 parents 3e733c7 + 14b0836 commit fb96e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dumpast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ let show_file fn =
Compenv.readenv Format.err_formatter Compenv.Before_compile;
let v =
if Filename.check_suffix fn ".mli" then
let ast = Pparse.parse_interface Format.err_formatter fn in
let ast = Pparse.parse_interface ~tool_name:"ocamlc" Format.err_formatter fn in
lift # lift_Parsetree_signature ast
else if Filename.check_suffix fn ".ml" then
let ast = Pparse.parse_implementation Format.err_formatter fn in
let ast = Pparse.parse_implementation ~tool_name:"ocamlc" Format.err_formatter fn in
lift # lift_Parsetree_structure ast
else
failwith (Printf.sprintf "Don't know what to do with file %s" fn)
Expand Down

0 comments on commit fb96e54

Please sign in to comment.