replaced prs by std_output;
authorwenzelm
Wed Nov 25 14:04:28 1998 +0100 (1998-11-25 ago)
changeset 596394709c11601e
parent 5962 0f7375e5e977
child 5964 a825c5929f4f
replaced prs by std_output;
src/FOLP/simp.ML
src/HOLCF/IOA/ABP/Check.ML
     1.1 --- a/src/FOLP/simp.ML	Wed Nov 25 14:04:05 1998 +0100
     1.2 +++ b/src/FOLP/simp.ML	Wed Nov 25 14:04:28 1998 +0100
     1.3 @@ -359,11 +359,11 @@
     1.4  datatype cntrl = STOP | MK_EQ | ASMS of int | SIMP_LHS | REW | REFL | TRUE
     1.5                 | PROVE | POP_CS | POP_ARTR | IF;
     1.6  (*
     1.7 -fun pr_cntrl c = case c of STOP => prs("STOP") | MK_EQ => prs("MK_EQ") |
     1.8 -ASMS i => print_int i | POP_ARTR => prs("POP_ARTR") |
     1.9 -SIMP_LHS => prs("SIMP_LHS") | REW => prs("REW") | REFL => prs("REFL") |
    1.10 -TRUE => prs("TRUE") | PROVE => prs("PROVE") | POP_CS => prs("POP_CS") | IF
    1.11 -=> prs("IF");
    1.12 +fun pr_cntrl c = case c of STOP => std_output("STOP") | MK_EQ => std_output("MK_EQ") |
    1.13 +ASMS i => print_int i | POP_ARTR => std_output("POP_ARTR") |
    1.14 +SIMP_LHS => std_output("SIMP_LHS") | REW => std_output("REW") | REFL => std_output("REFL") |
    1.15 +TRUE => std_output("TRUE") | PROVE => std_output("PROVE") | POP_CS => std_output("POP_CS") | IF
    1.16 +=> std_output("IF");
    1.17  *)
    1.18  fun simp_refl([],_,ss) = ss
    1.19    | simp_refl(a'::ns,a,ss) = if a'=a then simp_refl(ns,a,SIMP_LHS::REFL::ss)
     2.1 --- a/src/HOLCF/IOA/ABP/Check.ML	Wed Nov 25 14:04:05 1998 +0100
     2.2 +++ b/src/HOLCF/IOA/ABP/Check.ML	Wed Nov 25 14:04:28 1998 +0100
     2.3 @@ -112,11 +112,11 @@
     2.4     ------------------------------------*)
     2.5  
     2.6  fun print_list (lpar, rpar, pre: 'a -> unit) (lll : 'a list) =
     2.7 -  let fun prec x = (prs ","; pre x)
     2.8 +  let fun prec x = (std_output ","; pre x)
     2.9    in
    2.10      (case lll of
    2.11 -      [] => (prs lpar; prs rpar)
    2.12 -    | x::lll => (prs lpar; pre x; seq prec lll; prs rpar))
    2.13 +      [] => (std_output lpar; std_output rpar)
    2.14 +    | x::lll => (std_output lpar; pre x; seq prec lll; std_output rpar))
    2.15     end;
    2.16  
    2.17  fun pr_bool true = output(std_out,"true")
    2.18 @@ -135,17 +135,17 @@
    2.19        S_ack(b)   => "S_ack(b)" |                      
    2.20        R_ack(b)   => "R_ack(b)");
    2.21  
    2.22 -fun pr_pkt (b,ma) = (prs "<"; pr_bool b;prs ", "; pr_msg ma; prs ">");
    2.23 +fun pr_pkt (b,ma) = (std_output "<"; pr_bool b;std_output ", "; pr_msg ma; std_output ">");
    2.24  
    2.25  val pr_bool_list  = print_list("[","]",pr_bool);
    2.26  val pr_msg_list   = print_list("[","]",pr_msg);
    2.27  val pr_pkt_list   = print_list("[","]",pr_pkt);
    2.28  
    2.29  fun pr_tuple (env,p,a,q,b,ch1,ch2) = 
    2.30 -        (prs "{"; pr_bool env; prs ", "; pr_msg_list p;  prs ", ";
    2.31 -         pr_bool a;  prs ", "; pr_msg_list q; prs ", ";
    2.32 -         pr_bool b;  prs ", "; pr_pkt_list ch1;  prs ", ";
    2.33 -         pr_bool_list ch2; prs "}");
    2.34 +        (std_output "{"; pr_bool env; std_output ", "; pr_msg_list p;  std_output ", ";
    2.35 +         pr_bool a;  std_output ", "; pr_msg_list q; std_output ", ";
    2.36 +         pr_bool b;  std_output ", "; pr_pkt_list ch1;  std_output ", ";
    2.37 +         pr_bool_list ch2; std_output "}");
    2.38  
    2.39  
    2.40