(in-package #:clnl)
-(defvar *model-package* (find-package :cl-user)
- "*MODEL-PACKAGE*
-
-VALUE TYPE:
-
- a package
-
-INITIAL VALUE:
-
- The common-lisp-user package
-
-DESCRIPTION:
-
- *MODEL-PACKAGE* is used for interning symbols as a NetLogo code
- gets compiled.
-
- Any local symbols are interned in this package, for use either
- by other code, or in order to have all symbols interned in the
- same placakge. This is also the package in which a model should
- be run, whether by clnl code or independently.")
-
(defun e (ast) ast)
(defun r (str)
RUN-COMMANDS will take NetLogo commands, put them through the various
stages need to turn them into Common Lisp code, and run it."
- (eval (clnl-transpiler:transpile-commands (clnl-parser:parse (clnl-lexer:lex cmds)))))
+ (clnl-nvm:with-stop-handler (eval (clnl-transpiler:transpile-commands (clnl-parser:parse (clnl-lexer:lex cmds))))))
(defun run-reporter (reporter)
"RUN-REPORTER REPORTER => RESULT