X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=src%2Fmain%2Ftranspile.lisp;h=1bac2b6701500cde209f8cda61ed09338c2152c0;hp=e7e05de93e8b83b63520895910bcd41e83e3d8b1;hb=ef8590a;hpb=c11c429d212f7a08391cc117b9facd938cd80e63 diff --git a/src/main/transpile.lisp b/src/main/transpile.lisp index e7e05de..1bac2b6 100644 --- a/src/main/transpile.lisp +++ b/src/main/transpile.lisp @@ -140,6 +140,7 @@ DESCRIPTION: (defsimpleprim :/ :reporter cl:/) (defprim :any? :reporter (lambda (agentset) `(> (length ,agentset) 0))) (defsimpleprim :ask :command clnl-nvm:ask) +(defagentvalueprim :color) (defsimpleprim :crt :command clnl-nvm:create-turtles) (defsimpleprim :die :command clnl-nvm:die) (defsimpleprim :fd :command clnl-nvm:forward) @@ -150,6 +151,8 @@ DESCRIPTION: ,@(make-command-block-inline b)))) (defprim-alias :if-else :ifelse) +(defagentvalueprim :label) +(defagentvalueprim :label-color) (defsimpleprim :lt :command clnl-nvm:turn-left) (defkeywordprim :nobody) (defsimpleprim :one-of :reporter clnl-nvm:one-of) @@ -161,6 +164,7 @@ DESCRIPTION: (defsimpleprim :rt :command clnl-nvm:turn-right) (defsimpleprim :show :command clnl-nvm:show) (defsimpleprim :set :command cl:setf) +(defagentvalueprim :size) (defsimpleprim :tick :command clnl-nvm:tick) (defsimpleprim :ticks :reporter clnl-nvm:ticks) (defsimpleprim :turtles :reporter clnl-nvm:turtles)