forked from miloyip/json-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse_array10.dot
More file actions
50 lines (44 loc) · 1.44 KB
/
parse_array10.dot
File metadata and controls
50 lines (44 loc) · 1.44 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
43
44
45
46
47
48
49
50
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|]|,|3|]|<j>\\0"]
stack [fillcolor=4, label="<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]
a1 [fillcolor=2,label="{array|<e>e|size=3}"]
s [fillcolor=6,label="{string|<s>s|len=3}"]
a2 [fillcolor=2,label="{array|<e>e|size=2}"]
n1 [fillcolor=7,label="{number|n=1}"]
n2 [fillcolor=7,label="{number|n=2}"]
n3 [fillcolor=7,label="{number|n=3}"]
}
cjson -> json:j
ctop -> stack:t
json -> desc [style=invis]
stack -> a1 [style=invis]
a1:e -> s
s:s -> abc:h
a2:e -> n1;
a1 -> { a2; n3 } [style=invis]
a2:e -> n2 [style=invis]
n1 -> n2 [style=dashed,constraint=false]
s -> a2 -> n3 [style=dashed,constraint=false]
}