2
(defspel game-action (command subj obj place &rest rest)
`(defspel ,command (subject object)
`(cond ((and (eq *location* ',',place)
(eq ',subject ',',subj)
(eq ',object ',',obj)
(have ',',subj))
,@',rest)
(t '(i cant ,',command like that.)))))
'매크로 정의 매크로'의 코드는 http://www.lisperati.com/actions.html입니다. 나는 그것을 체계로 적절하게 변환하는 것처럼 보이지 않는다. 누군가 제가 Scheme에서 이와 동일한 종류의 것을 만드는 과정을 나에게 설명 할 수 있습니까?PLT 스키마 : 'LISP에서 SPEL 캐스팅'의 매크로 중 하나 변환
대단히 감사합니다!^_ ^ –