You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: s-graphviz.org
+31-30
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
- [[#the-encode-stream][the encode stream]]
15
15
- [[#the-indent-level][the indent level]]
16
16
- [[#the-default-size-for-indent-tab][the default size for indent tab]]
17
-
- [[#how-to-render-a-dot-s-expression][how to render a DOT S-expression]]
17
+
- [[#how-to-render-a-s-graphviz-s-expression][how to render a S-GRAPHVIZ S-expression]]
18
18
- [[#graph][graph]]
19
19
- [[#stmt-list][stmt-list]]
20
20
- [[#stmt][stmt]]
@@ -32,17 +32,18 @@
32
32
- [[#node-statement-1][node statement]]
33
33
34
34
* Introduction
35
-
S-Dot is an S-Expression syntax for the input language of the 'Dot' graph drawing tool from the [[http://www.graphviz.org/][AT&T GraphViz]] suite.
36
-
With S-Dot, you can render 'Dot' graphs from within Common Lisp.
35
+
S-Graphviz is an S-Expression syntax for the input language of the 'Dot' graph drawing tool from the [[http://www.graphviz.org/][AT&T GraphViz]] suite.
36
+
With S-Graphviz, you can render 'Dot' graphs from within Common Lisp.
37
37
The idea of this package is from [[http://martin-loetzsch.de/S-DOT/][S-DOT]].
38
38
39
39
* Preparation
40
40
Let's create an individual package for this module.
41
41
#+BEGIN_SRC lisp
42
-
(defpackage :dot
42
+
(defpackage :s-graphviz
43
+
(:nicknames :graphviz)
43
44
(:use :common-lisp :iter)
44
45
(:export :render-graph :format-graph))
45
-
(in-package :dot)
46
+
(in-package :s-graphviz)
46
47
#+END_SRC
47
48
* Language presentation
48
49
We will use a lisp style to present the [[https://www.graphviz.org/doc/info/lang.html][DOT language]].
@@ -81,8 +82,8 @@ How many whitespaces will be written before printing current DOT expression.
81
82
#+BEGIN_SRC lisp
82
83
(defvar *indent-tab-size* 2)
83
84
#+END_SRC
84
-
** how to render a DOT S-expression
85
-
Renders a s-DOT graph into a graphic file.
85
+
** how to render a S-GRAPHVIZ S-expression
86
+
Renders a s-graphviz graph into a graphic file.
86
87
~file-name~ should be a pathname.
87
88
If the file-name is ~/foo/bar.png~ , the DOT file ~/foo/bar.dot~ is created
88
89
and then rendered.
@@ -98,17 +99,17 @@ for example svg, ps, gif, png, or jpg.
0 commit comments