# Source examples/ast-shape-for-property-nodes.egg
➜ egg-oop-parser-solution git:(master) cat examples/ast-shape-for-property-nodes.egg [[1,2]][0,1]
Copied!
1
2
2
# JSON examples/ast-shape-for-property-nodes.json
{ "type": "property", "operator": { "type": "apply", "operator": { "type": "word", "length": 5, "name": "array" }, "args": [ { "type": "apply", "operator": { "type": "word", "line": 1, "col": 3, "length": 5, "name": "array" }, "args": [ { "type": "value", "value": 1, "line": 1, "col": 3, "length": 1 }, { "type": "value", "value": 2, "line": 1, "col": 5, "length": 1 } ] } ] }, "args": [ { "type": "value", "value": 0, "line": 1, "col": 9, "length": 1 }, { "type": "value", "value": 1, "line": 1, "col": 11, "length": 1 } ] }
Copied!
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
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