From: Frank Duncan Date: Sun, 1 May 2016 19:44:51 +0000 (-0500) Subject: Prims - Implement display as placehodler X-Git-Tag: v0.1.0~22 X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=commitdiff_plain;h=aa474227efad1f00e26f762b597a1f18a9cc3be5;p=clnl Prims - Implement display as placehodler --- diff --git a/src/main/nvm/nvm.lisp b/src/main/nvm/nvm.lisp index c98616a..9ccb80d 100644 --- a/src/main/nvm/nvm.lisp +++ b/src/main/nvm/nvm.lisp @@ -188,6 +188,21 @@ DESCRIPTION: (clear-patches) (clear-ticks)) +(defun display () + "DISPLAY => RESULT + +ARGUMENTS AND VALUES: + + RESULT: undefined + +DESCRIPTION: + + As of yet, this does nothing. A placeholder method for forced dipslay + updates from the engine. + + See http://ccl.northwestern.edu/netlogo/docs/dictionary.html#display" + nil) + (defun of (fn agent-or-agentset) "OF FN AGENT-OR-AGENTSET => RESULT diff --git a/src/main/package.lisp b/src/main/package.lisp index f1f5392..07666e7 100644 --- a/src/main/package.lisp +++ b/src/main/package.lisp @@ -73,6 +73,7 @@ into an ast that can be transpiled later.")) #:count #:create-turtles #:die + #:display #:hatch #:of #:forward diff --git a/src/main/transpile.lisp b/src/main/transpile.lisp index 554e0cd..8cf44e7 100644 --- a/src/main/transpile.lisp +++ b/src/main/transpile.lisp @@ -147,6 +147,7 @@ DESCRIPTION: (defsimpleprim :count :reporter clnl-nvm:count) (defsimpleprim :crt :command clnl-nvm:create-turtles) (defsimpleprim :die :command clnl-nvm:die) +(defsimpleprim :display :command clnl-nvm:display) (defsimpleprim :fd :command clnl-nvm:forward) (defsimpleprim :hatch :command clnl-nvm:hatch) (defprim :if :command (lambda (pred a) `(when ,pred ,@(make-command-block-inline a))))