forked from miloyip/json-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse_array09.dot
More file actions
42 lines (36 loc) · 1.16 KB
/
parse_array09.dot
File metadata and controls
42 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
digraph {
rankdir=TB
compound=true
fontname="Inconsolata, Consolas"
fontsize=10
margin="0,0"
ranksep=0.3
nodesep=1
penwidth=0.5
node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5, colorscheme=spectral7]
edge [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
{
node [shape=record, style=filled, margin=0.1, height=0.3]
json [fillcolor=3, label="[|\"|a|b|c|\"|,|[|1|,|2|]|<j>,|3|]|\\0"]
stack [fillcolor=4, label="{string|<s>s|len=3}|{array|<e>e|size=2}|<t> | | | |"]
abc [fillcolor=3, label="<h>a|b|c|\\0"]
}
{
node [shape=plaintext, margin=0]
cjson [label="c->json"]
ctop [label="c->top"]
desc [style=solid,label="\l1. lept_parse()\l 2. lept_parse_value()\l 3. lept_parse_array()\l"]
}
{
node [shape=Mrecord,style=filled]
n1 [fillcolor=7,label="{number|n=1}"]
n2 [fillcolor=7,label="{number|n=2}"]
}
cjson -> json:j
ctop -> stack:t
json -> desc [style=invis]
stack:s -> abc:h
stack:e -> n1;
stack:e -> n2 [style=invis]
n1 -> n2 [style=dashed,constraint=false]
}