Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorials:beginner:designators [2016/01/22 15:53] – [Defining inference rules for designators] gkazhoyatutorials:beginner:designators [2016/03/04 14:09] gkazhoya
Line 1: Line 1:
-====== Creating action designators for the turtlesim ======+====== Creating action designators for the TurtleSim ======
  
 **Description:** In this tutorial you will learn what designators are, and in particular, work with action designators: you will learn how to define one and how to use it. **Description:** In this tutorial you will learn what designators are, and in particular, work with action designators: you will learn how to define one and how to use it.
Line 22: Line 22:
  
 <code lisp> <code lisp>
-(defparameter spy-location (make-designator :location `((:to :see) (:object ,prime-minister))))+(defparameter spy-location (make-designator 'location `((:to :see) (:object ,prime-minister))))
 </code> </code>
  
Line 80: Line 80:
  
 <code lisp> <code lisp>
-TUT> (defparameter my-desig (make-designator :action '((:type :shape) (:shape :triangle) (:radius 3))))+TUT> (defparameter my-desig (make-designator 'action '((:type :shape) (:shape :triangle) (:radius 3))))
 MY-DESIG MY-DESIG
 TUT> (desig-prop-value my-desig :radius) TUT> (desig-prop-value my-desig :radius)
Line 188: Line 188:
  
 <code lisp> <code lisp>
-TUT> (defparameter my-desig-2 (make-designator :action '((:type :shape) (:shape :triangle) (:radius 5))))+TUT> (defparameter my-desig-2 (make-designator 'action '((:type :shape) (:shape :triangle) (:radius 5))))
 MY-DESIG-2 MY-DESIG-2
 TUT> (reference my-desig-2) TUT> (reference my-desig-2)