Skip to content

Commit

Permalink
print type without colon
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Nov 15, 2024
1 parent 833b239 commit 633073c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/parse/Parse.sig
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ signature Parse = sig
val pp_thm : thm pprinter
val stdprinters : ((term -> string) * (hol_type -> string)) option

val pp_type_without_colon : hol_type pprinter
val term_pp_with_delimiters : term pprinter -> term pprinter
val type_pp_with_delimiters : hol_type pprinter -> hol_type pprinter
val get_term_printer : unit -> term pprinter
Expand Down
9 changes: 9 additions & 0 deletions src/parse/Parse.sml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@ fun update_type_fns () =

val dflt_pinfo = term_pp_utils.dflt_pinfo

fun pp_type_without_colon ty =
let
open smpp
val _ = update_type_fns()
val mptr = !type_printer (!current_backend) ty
in
lower mptr dflt_pinfo |> valOf |> #1
end

fun pp_type ty =
let
open smpp
Expand Down

0 comments on commit 633073c

Please sign in to comment.