-
Notifications
You must be signed in to change notification settings - Fork 145
How to load mcclim in clasp
Karsten Poeck edited this page Apr 23, 2020
·
13 revisions
- clasp from dev as of 2019-01-12
- Put the following in ~/quicklisp/local-projects/
- bordeaux-threads (quicklisp not updated, need https://github.com/sionescu/bordeaux-threads.git , master)
- clx (from quicklisp or https://github.com/sharplispers/clx.git, master)
- mcclim (from quicklisp or https://github.com/McCLIM/McCLIM.git, master)
(require :asdf)
(load "~/quicklisp/setup.lisp")
(ql:quickload "clim-examples" :verbose t)
(mcclim-truetype::autoconfigure-fonts)
- (clim-demo:demodemo)
- or e.g.
- (clim:run-frame-top-level (clim:make-application-frame 'clim-demo::logic-cube))
- (clim:run-frame-top-level (clim:make-application-frame 'calculator-demo::calculator-app))
- (clim:run-frame-top-level (clim:make-application-frame 'clim-demo::address-book))
- make the asd files known:
- (asdf:load-asd (pathname "sys:kernel;contrib;sicl;Code;Cleavir;Intermediate-representation;Visualizer;cleavir-ir-visualizer.asd"))
- (asdf:load-asd (pathname "sys:kernel;contrib;sicl;Code;Cleavir;Intermediate-representation;cleavir-ir.asd"))
- (asdf:load-asd (pathname "sys:kernel;contrib;sicl;Code;Cleavir;Meter;cleavir-meter.asd"))
- (asdf:load-asd (pathname "~/quicklisp/software/mcclim-git/Apps/Inspector/clouseau.asd")) adapt to your directory-structure
- (asdf:load-asd (pathname "sys:kernel;contrib;sicl;Code;Cleavir;Intermediate-representation;Hir;cleavir-hir.asd"))
- (ql:quickload "cleavir-ir-visualizer" :verbose t)
- to test
(cl:in-package #:cleavir-ir-visualizer)
(defvar *ast*)
(defvar *hir*)
(setq *ast* (cleavir-generate-ast:generate-ast '(lambda(a) (+ a 1)) clasp-cleavir:*clasp-env* clasp-cleavir:*clasp-system*))
(setq *hir* (cleavir-ast-to-hir:compile-toplevel-unhoisted *ast*))
(cleavir-ir-visualizer:visualize *hir*)