+
+; Everything gets tied together here
+; The intention of this method is to generate the common lisp equivalent of a model file,
+; such that if you decided to no longer use nlogo, you could use the engine without it.
+(defun model->lisp (model)
+ `(let
+ ,(clnl-model:globals model)
+ (clnl-random:set-seed 15) ; should the seed always be 15?
+ (clnl-nvm:create-world :dims ',(clnl-model:world-dimensions model))
+ (clnl-interface:initialize :dims ',(clnl-model:world-dimensions model))))