fork download
  1. ; your code goes here
  2.  
  3. (deftemplate Book_Info
  4. (slot Book_title)
  5. (slot Author_name)
  6. (slot Publisher_name)
  7. (slot Edition)
  8. )
  9.  
  10. CLIPS> (deftemplate Book_Info
  11. "Information about a book"
  12. (slot Book_title)
  13. (slot Author_name)
  14. (slot Publisher_name)
  15. (slot Edition))
  16.  
  17. CLIPS> (assert (Book_Info
  18. (Book_title "The Catcher in the Rye")
  19. (Author_name "J.D. Salinger")
  20. (Publisher_name "Little, Brown and Company")
  21. (Edition "First Edition")))
  22.  
  23. CLIPS> (assert (Book_Info
  24. (Book_title "1984")
  25. (Author_name "George Orwell")
  26. (Publisher_name "Secker & Warburg")
  27. (Edition "Second Edition")))
  28.  
  29. CLIPS> (assert (Book_Info
  30. (Book_title "To Kill a Mockingbird")
  31. (Author_name "Harper Lee")
  32. (Publisher_name "J.B. Lippincott & Co.")
  33. (Edition "50th Anniversary Edition")))
  34.  
  35. CLIPS> (assert (Book_Info
  36. (Book_title "Moby-Dick")
  37. (Author_name "Herman Melville")
  38. (Publisher_name "Richard Bentley")
  39. (Edition "Third Edition")))
  40.  
  41. CLIPS> (assert (Book_Info
  42. (Book_title "Pride and Prejudice")
  43. (Author_name "Jane Austen")
  44. (Publisher_name "T. Egerton")
  45. (Edition "Penguin Classics Edition")))
  46.  
  47. CLIPS> (assert (Book_Info
  48. (Book_title "The Great Gatsby")
  49. (Author_name "F. Scott Fitzgerald")
  50. (Publisher_name "Charles Scribner's Sons")
  51. (Edition "Sixth Edition")))
  52.  
  53. CLIPS> (assert (Book_Info
  54. (Book_title "Brave New World")
  55. (Author_name "Aldous Huxley")
  56. (Publisher_name "Chatto & Windus")
  57. (Edition "Vintage Classics Edition")))
  58.  
  59. CLIPS> (assert (Book_Info
  60. (Book_title "The Hobbit")
  61. (Author_name "J.R.R. Tolkien")
  62. (Publisher_name "George Allen & Unwin")
  63. (Edition "Fifth Edition")))
  64.  
  65. (exit)
  66. ; empty line at the end
Success #stdin #stdout 0.01s 5296KB
stdin
Standard input is empty
stdout
[EXPRNPSR3] Missing function declaration for slot.

[EXPRNPSR3] Missing function declaration for slot.

[EXPRNPSR3] Missing function declaration for slot.

[EXPRNPSR3] Missing function declaration for slot.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.

[EXPRNPSR3] Missing function declaration for Book_title.

[EXPRNPSR3] Missing function declaration for Author_name.

[EXPRNPSR3] Missing function declaration for Publisher_name.

[EXPRNPSR3] Missing function declaration for Edition.