From aa474227efad1f00e26f762b597a1f18a9cc3be5 Mon Sep 17 00:00:00 2001 From: Frank Duncan Date: Sun, 1 May 2016 14:44:51 -0500 Subject: [PATCH] Prims - Implement display as placehodler --- src/main/nvm/nvm.lisp | 15 +++++++++++++++ src/main/package.lisp | 1 + src/main/transpile.lisp | 1 + 3 files changed, 17 insertions(+) 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)))) -- 2.25.1