Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. (*
  2. * CS 671 p7 1, Spring 2014
  3. *
  4. * @author Justin Mansfield, jmc2598
  5. * @date April 15, 2014
  6. *)
  7.  
  8. (*this is for the soduku portion*)
  9. use "prop-sig.sml";
  10. use "state-sig.sml";
  11.  
  12. structure BoolListState : BOOL_STATE = struct
  13.  
  14. type value = bool
  15. type state = (string*value) list
  16.  
  17. val blankState = []:state
  18.  
  19. (*val set : state -> string * value -> state*)
  20. fun set _ = raise Fail "not done"
  21.  
  22. (*val unset : state -> string -> state*)
  23. fun unset _ = raise Fail "not done"
  24.  
  25. (*val get : state -> string -> value option*)
  26. fun get b1 c = NONE
  27.  
  28. (*val dumpState : state -> unit*)
  29. fun dumpState s1 = print "dumpstate"
  30. end
  31.  
  32. structure BoolPairState : BOOL_STATE = struct
  33. (* A state in which no variable is set*)
  34. type value = bool
  35.  
  36. type state = (string list) * (string list)
  37. val blankState = ([],[]):state
  38. (*val set : state -> string * value -> state*)
  39. fun set _= raise Fail "not done"
  40.  
  41. (*val unset : state -> string -> state*)
  42. fun unset _= raise Fail "not done"
  43.  
  44. (*val get : state -> string -> value option*)
  45. fun get _= raise Fail "not done"
  46.  
  47. (*val dumpState : state -> unit*)
  48. fun dumpState _= raise Fail "not done"
  49. end
  50. (*use "pairPropStub.sml";*)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement