diff options
| author | Pierre Boutillier | 2013-12-19 18:18:14 +0100 |
|---|---|---|
| committer | Pierre Boutillier | 2013-12-19 18:18:14 +0100 |
| commit | 7c4dee1381546347df8b473ef3986b654f03c33d (patch) | |
| tree | 983745ae548bc74f6da9fc8e68d9c6f9b0cfb62a /printing/pptactic.ml | |
| parent | c93a0973d069df9c8ce2bb89782bdd7c0325f983 (diff) | |
Printing function for Stdargs in debugger
Diffstat (limited to 'printing/pptactic.ml')
| -rw-r--r-- | printing/pptactic.ml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/printing/pptactic.ml b/printing/pptactic.ml index 77f5db3b4c..cb09784c16 100644 --- a/printing/pptactic.ml +++ b/printing/pptactic.ml @@ -1029,12 +1029,20 @@ let register_uniform_printer wit pr = Genprint.register_print0 wit pr pr pr let () = + let pr_bool b = if b then str "true" else str "false" in + let pr_unit _ = str "()" in + let pr_string s = str "\"" ++ str s ++ str "\"" in Genprint.register_print0 Constrarg.wit_ref pr_reference (pr_or_var (pr_located pr_global)) pr_global; Genprint.register_print0 Constrarg.wit_intro_pattern pr_intro_pattern pr_intro_pattern pr_intro_pattern; Genprint.register_print0 Constrarg.wit_sort - pr_glob_sort pr_glob_sort pr_sort + pr_glob_sort pr_glob_sort pr_sort; + Genprint.register_print0 Stdarg.wit_int int int int; + Genprint.register_print0 Stdarg.wit_bool pr_bool pr_bool pr_bool; + Genprint.register_print0 Stdarg.wit_unit pr_unit pr_unit pr_unit; + Genprint.register_print0 Stdarg.wit_pre_ident str str str; + Genprint.register_print0 Stdarg.wit_string pr_string pr_string pr_string let () = let printer _ _ prtac = prtac (0, E) in |
