-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpression_tree.tex
More file actions
62 lines (60 loc) · 2.35 KB
/
expression_tree.tex
File metadata and controls
62 lines (60 loc) · 2.35 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
51
52
53
54
55
56
57
58
59
60
61
62
\begin{tikzpicture}[
func/.style={rectangle, draw=none, rounded corners=1mm, fill=blue,
text centered, anchor=north, text=white},
operator/.style={circle, draw=none, fill=orange,
text centered, anchor=north, text=white},
leaf/.style={rectangle, draw=none, rounded corners=1mm, fill=red,
text centered, anchor=north, text=white},
level distance=0.3cm, growth parent anchor=south
]
\node (Select) [func] {Select} [->] [sibling distance=5cm]
child[visible on=<2->]{
node (Where) [func]{Where}[sibling distance=2cm]
child[visible on=<3->]{
node (Posts) [leaf] {Posts}
}
child[visible on=<4->]{
node (OR) [operator] {OR}[sibling distance=4cm]
child[visible on=<5->]{
node (State03) [func] {String.StartsWith}
child[visible on=<6->]{
node(Prop)[leaf]{Property:Content}
}
child[visible on=<7->]{
node(Prop)[leaf]{"Some"}
}
}
child[visible on=<8->]{
node (Gr) [operator] {>}[level distance=1cm, sibling distance=1.5cm]
child[visible on=<9->]{
node(Prop)[func]{Prop:Length}
child[visible on=<9->]{
node(PropLength)[leaf]{Prop:Title}
}
}
child[visible on=<10->]{
node(Prop)[leaf]{10}
}
}
}
}
child[visible on=<11->]{
node (MemberInit) [func] {Member Init} [sibling distance=2cm]
child[visible on=<12->]{
node (State22) [leaf][text width=1.5cm] {New Anonymous Class}
}
child[visible on=<13->]{
node (State22) [func] {Members Binding List}[sibling distance=1.1cm, level distance=1.2cm]
child[visible on=<14->]{
node(id)[leaf]{Id}
}
child[visible on=<15->]{
node(title)[leaf]{Title}
}
child[visible on=<16->]{
node(content)[leaf]{Content}
}
}
}
;
\end{tikzpicture}