Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwhitington committed Sep 2, 2019
1 parent 19165fb commit a0bbe57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ocamli2/ppx_interpret/ppx_interpret.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let preamble = ast
let () = Tppxsupport.init ()
let template_string = ""
let () = Print.showvals := false
let eval_full = Tppxsupport.eval_full env|}
let eval_full = Tppxsupport.eval_full_from_typedtree env|}

let printas_text = function None -> "None" | Some x -> "(Some \"" ^ x ^ "!\")"

Expand Down Expand Up @@ -84,6 +84,10 @@ let add_patmatch_printer default_mapper mapper expr =
{case with pc_rhs = sequence}
in
{expr with pexp_desc = Pexp_function (List.map f cases); pexp_attributes = []}
| {pexp_desc;
pexp_attributes = [{attr_name = {txt ="interpret"}; attr_payload}]} as e ->
print_string "&&&&&&&&&&&&&&&&&&&&&&&&&Plain PPX found the [@interpret] annotation\n";
e
| e -> e (* Don't do anything. This needs to fixed properly to allow us to have multiple expr mappers which do not interfere with one another... *)

let interpret_mapper argv =
Expand Down

0 comments on commit a0bbe57

Please sign in to comment.