(defstruct turtle who color heading)
(defvar *turtles* nil)
+(defun show (n)
+ (format t "Showing: ~A~%" n))
+
(defun create-turtle ()
(push
(make-turtle :who *current-id*
*prims*))
; This list of prims will get combined with the mapping to actual code later
+; Current list of argument types we accept:
+; - :number
+; - t - any type
(defprim :crt (:number))
+(defprim :show (t))
; We count on the parser to handle arguemnts for us, when collating things.
(defprim :crt :command cl-nl.nvm::create-turtles)
+(defprim :show :command cl-nl.nvm::show)