diff options
| author | Kathy Gray | 2014-09-09 15:44:18 +0100 |
|---|---|---|
| committer | Kathy Gray | 2014-09-09 15:44:18 +0100 |
| commit | cac84fb2f04b8faa5e435abdd3194a2f8911f5d3 (patch) | |
| tree | 1c1f4f7e9a9bb90be341aabc36358f96272d4eac /src/pretty_print.ml | |
| parent | d7f2ad0285fb20cf7c96cccffafdaa22211239c1 (diff) | |
Full power.sail now type checking and generating Lem.
Diffstat (limited to 'src/pretty_print.ml')
| -rw-r--r-- | src/pretty_print.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pretty_print.ml b/src/pretty_print.ml index 714112ad..b55bf4b9 100644 --- a/src/pretty_print.ml +++ b/src/pretty_print.ml @@ -31,6 +31,7 @@ let pp_format_id (Id_aux(i,_)) = let pp_format_var (Kid_aux(Var v,_)) = v let rec pp_format_l_lem = function + | _ -> "Unknown" | Parse_ast.Unknown -> "Unknown" | Parse_ast.Int(s,None) -> "(Int \"" ^ s ^ "\" Nothing)" | Parse_ast.Int(s,(Some l)) -> "(Int \"" ^ s ^ "\" (Just " ^ (pp_format_l_lem l) ^ "))" @@ -258,7 +259,7 @@ let pp_format_tag = function let rec pp_format_nes nes = "[" ^ - (list_format "; " + (*(list_format "; " (fun ne -> match ne with | LtEq(_,n1,n2) -> "(Nec_lteq " ^ pp_format_n n1 ^ " " ^ pp_format_n n2 ^ ")" | Eq(_,n1,n2) -> "(Nec_eq " ^ pp_format_n n1 ^ " " ^ pp_format_n n2 ^ ")" @@ -272,7 +273,7 @@ let rec pp_format_nes nes = | BranchCons(_,nes_b) -> "(Nec_branch " ^ (pp_format_nes nes_b) ^ ")" ) - nes) ^ "]" + nes) ^*) "]" let pp_format_annot = function | NoTyp -> "Nothing" |
