Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. (define-syntax-rule (game-action command subj obj place rest)
  2. (define-syntax-rule 'command (subject object)
  3. (cond ((and (eq? *location* 'place)
  4. (eq? subject 'subj)
  5. (eq? object 'obj)
  6. (have 'subj))
  7. rest)
  8. (#t (format "I can't ~a like that." 'command)))))
  9.  
  10. (game-action doweld chain bucket attic (display "!!!"))
  11.  
  12. ; define-syntax-rule: too many templates in: ((cond ((and (eq? *location* (quote attic)) (eq? subject (quote chain))
  13. ; (eq? object (quote bucket)) (have (quote chain))) (display ":)")) (#t (format "I can't ~a like that." (quote doweld)))))
Add Comment
Please, Sign In to add comment