Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print type without colon #1344

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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