diff options
| author | Jon French | 2019-04-15 16:18:18 +0100 |
|---|---|---|
| committer | Jon French | 2019-04-15 16:18:18 +0100 |
| commit | a9f0b829507e9882efdb59cce4d83ea7e87f5f71 (patch) | |
| tree | 11cde6c1918bc15f4dda9a8e40afd4a1fe912a0a /src/pretty_print_common.ml | |
| parent | 0f6fd188ca232cb539592801fcbb873d59611d81 (diff) | |
| parent | 57443173923e87f33713c99dbab9eba7e3db0660 (diff) | |
Merge branch 'sail2' into rmem_interpreter
Diffstat (limited to 'src/pretty_print_common.ml')
| -rw-r--r-- | src/pretty_print_common.ml | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/pretty_print_common.ml b/src/pretty_print_common.ml index 3a1deed0..c1680878 100644 --- a/src/pretty_print_common.ml +++ b/src/pretty_print_common.ml @@ -76,25 +76,9 @@ let semi_sp = semi ^^ space let comma_sp = comma ^^ space let colon_sp = spaces colon -let doc_var (Kid_aux(Var v,_)) = string v let doc_int i = string (Big_int.to_string i) let doc_op symb a b = infix 2 1 symb a b let doc_unop symb a = prefix 2 1 symb a -let doc_id (Id_aux(i,_)) = - match i with - | Id i -> string i - | DeIid x -> - (* add an extra space through empty to avoid a closing-comment - * token in case of x ending with star. *) - parens (separate space [string "deinfix"; string x; empty]) - -(* -let rec doc_range (BF_aux(r,_)) = match r with - | BF_single i -> doc_int i - | BF_range(i1,i2) -> doc_op dotdot (doc_int i1) (doc_int i2) - | BF_concat(ir1,ir2) -> (doc_range ir1) ^^ comma ^^ (doc_range ir2) -*) - let print ?(len=100) channel doc = ToChannel.pretty 1. len channel doc let to_buf ?(len=100) buf doc = ToBuffer.pretty 1. len buf doc |
