X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=src%2Fmain%2Fmodel.lisp;h=33f90aa588327b040c5b87a02b1f85efb21223b5;hp=1927ff5847f9740e8d393c6da4642dab87e0189e;hb=18f00de47300789104d94745cd9db874b2071b7e;hpb=72d7364634aec6c24803deb29bdfde0fbfa6e7ad diff --git a/src/main/model.lisp b/src/main/model.lisp index 1927ff5..33f90aa 100644 --- a/src/main/model.lisp +++ b/src/main/model.lisp @@ -54,7 +54,15 @@ DESCRIPTION: (read-sections (append section (list line)))))))) (read-sections)))) (make-model - :code (clnl-code-parser:parse (clnl-lexer:lex (format nil "~{~A~^~%~}" (nth 0 sections)))) + :code (clnl-code-parser:parse + (clnl-lexer:lex (format nil "~{~A~^~%~}" (nth 0 sections))) + (remove nil + (mapcar + (lambda (widget) + (typecase widget + (slider (intern (string-upcase (slider-varname widget)) (find-package :keyword))) + (switch (intern (string-upcase (switch-varname widget)) (find-package :keyword))))) + (parse-interface (nth 1 sections))))) :interface (parse-interface (nth 1 sections)) :info (nth 2 sections) :turtle-shapes (nth 3 sections)