Advertisement
cciaranddunne

Untitled

Nov 6th, 2017
3,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun print_b_reduce strat i lim m =
  2.   if (i = lim) then
  3.     print "Reduction limit reached.\n"
  4.   else if has_b_redex m then
  5.     (printLEXP' m;
  6.      print "--> ";
  7.      print_b_reduce strat (i+1) lim (strat m))
  8.   else
  9.     (printLEXP' m;
  10.      print (Int.toString i);
  11.      print " steps.\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement