changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > org > docs / core/api/readme.org

changeset 16: 46fb6a10d2e1
parent: 31db7a83d2c6
author: ellis <ellis@rwest.io>
date: Fri, 29 Dec 2023 00:43:43 -0500
permissions: -rw-r--r--
description: stats
1 {{{header(Core API Docs,Richard Westhaver,ellis@rwest.io)}}}
2 #+OPTIONS: ^:nil toc:nil num:nil html-postamble:nil
3 #+EXPORT_FILE_NAME: index
4 
5 =TODO=
6 
7 This documentation is automatically generated based on the default
8 branch of the [[https://vc.compiler.company/comp/core][core]].
9 
10 #+begin_src lisp :results silent
11 (ql:quickload :dot)
12 #+end_src
13 
14 #+begin_src lisp :results output replace
15  (defmethod dot:graph-object-node ((graph (eql 'core-api)) (obj cons))
16  (make-instance 'dot:node
17  :attributes '(:shape :box)))
18 
19  (defmethod dot:graph-object-points-to ((graph (eql 'core-api)) (obj cons))
20  (list (car obj)
21  (make-instance 'dot:attributed
22  :object (cdr obj)
23  :attributes '(:weight 3))))
24 
25  (defmethod graph-object-node ((graph (eql 'core-api)) (obj symbol))
26  (make-instance 'dot:node
27  :attributes `(:label ,obj
28  :shape :hexagon)))
29 
30 
31  (dot:print-graph
32  (dot:generate-graph-from-roots 'core-api (list)
33  '(:rankdir "LR" :layout "twopi" :labelloc "t")))
34 #+end_src
35 
36 #+RESULTS:
37 : digraph {
38 : rankdir=LR;
39 : layout="twopi";
40 : labelloc="t";
41 : }