-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.code
35 lines (28 loc) · 1.06 KB
/
README.code
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
id ----+ +-- val
| |
v v
container C1 { <---+--+
| | parent
kid[1] +-> leaf L1 { ------+ |
| type string; |
| } parent
| |
kid[2] +-> leaf L2 { --------+ <-----+
| | parent
kid[1] +-> type uint32; -----------+
} ^ ^ ^
} | | |
| | +-- node = nil
| |
id ------+ +---- val
Node:
+----+-----+--------+---------+
| id | val | parent | kids |
+----+-----+--------+---------+
Call:
main (yang) -> matcher
matcher -> domatch
^ <invoke checker>
| checker -> <adds imports/includes to list>
| |
+----------+