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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
@ ProgramNode (location: (1,0)-(23,9))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(23,9))
└── body: (length: 10)
├── @ ReturnNode (location: (1,0)-(1,6))
│ ├── flags: ∅
│ ├── keyword_loc: (1,0)-(1,6) = "return"
│ └── arguments: ∅
├── @ ReturnNode (location: (3,0)-(3,20))
│ ├── flags: ∅
│ ├── keyword_loc: (3,0)-(3,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (3,7)-(3,20))
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ ParenthesesNode (location: (3,7)-(3,10))
│ │ ├── body:
│ │ │ @ StatementsNode (location: (3,8)-(3,9))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,8)-(3,9))
│ │ │ ├── flags: decimal
│ │ │ └── value: 1
│ │ ├── opening_loc: (3,7)-(3,8) = "("
│ │ └── closing_loc: (3,9)-(3,10) = ")"
│ ├── @ ParenthesesNode (location: (3,12)-(3,15))
│ │ ├── body:
│ │ │ @ StatementsNode (location: (3,13)-(3,14))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,13)-(3,14))
│ │ │ ├── flags: decimal
│ │ │ └── value: 2
│ │ ├── opening_loc: (3,12)-(3,13) = "("
│ │ └── closing_loc: (3,14)-(3,15) = ")"
│ └── @ ParenthesesNode (location: (3,17)-(3,20))
│ ├── body:
│ │ @ StatementsNode (location: (3,18)-(3,19))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (3,18)-(3,19))
│ │ ├── flags: decimal
│ │ └── value: 3
│ ├── opening_loc: (3,17)-(3,18) = "("
│ └── closing_loc: (3,19)-(3,20) = ")"
├── @ ReturnNode (location: (5,0)-(5,9))
│ ├── flags: ∅
│ ├── keyword_loc: (5,0)-(5,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (5,7)-(5,9))
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ SplatNode (location: (5,7)-(5,9))
│ ├── operator_loc: (5,7)-(5,8) = "*"
│ └── expression:
│ @ IntegerNode (location: (5,8)-(5,9))
│ ├── flags: decimal
│ └── value: 1
├── @ ReturnNode (location: (7,0)-(7,8))
│ ├── flags: ∅
│ ├── keyword_loc: (7,0)-(7,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (7,7)-(7,8))
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (7,7)-(7,8))
│ ├── flags: decimal
│ └── value: 1
├── @ ReturnNode (location: (9,0)-(10,1))
│ ├── flags: ∅
│ ├── keyword_loc: (9,0)-(9,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (9,7)-(10,1))
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (9,7)-(9,8))
│ │ ├── flags: decimal
│ │ └── value: 1
│ ├── @ IntegerNode (location: (9,10)-(9,11))
│ │ ├── flags: decimal
│ │ └── value: 2
│ └── @ IntegerNode (location: (10,0)-(10,1))
│ ├── flags: decimal
│ └── value: 3
├── @ ReturnNode (location: (12,0)-(12,14))
│ ├── flags: ∅
│ ├── keyword_loc: (12,0)-(12,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (12,7)-(12,14))
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (12,7)-(12,8))
│ │ ├── flags: decimal
│ │ └── value: 1
│ ├── @ IntegerNode (location: (12,10)-(12,11))
│ │ ├── flags: decimal
│ │ └── value: 2
│ └── @ IntegerNode (location: (12,13)-(12,14))
│ ├── flags: decimal
│ └── value: 3
├── @ ReturnNode (location: (14,0)-(14,16))
│ ├── flags: ∅
│ ├── keyword_loc: (14,0)-(14,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (14,7)-(14,16))
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ ArrayNode (location: (14,7)-(14,16))
│ ├── flags: ∅
│ ├── elements: (length: 3)
│ │ ├── @ IntegerNode (location: (14,8)-(14,9))
│ │ │ ├── flags: decimal
│ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (14,11)-(14,12))
│ │ │ ├── flags: decimal
│ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (14,14)-(14,15))
│ │ ├── flags: decimal
│ │ └── value: 3
│ ├── opening_loc: (14,7)-(14,8) = "["
│ └── closing_loc: (14,15)-(14,16) = "]"
├── @ ReturnNode (location: (16,0)-(19,1))
│ ├── flags: ∅
│ ├── keyword_loc: (16,0)-(16,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (16,6)-(19,1))
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ ParenthesesNode (location: (16,6)-(19,1))
│ ├── body:
│ │ @ StatementsNode (location: (17,2)-(18,3))
│ │ └── body: (length: 2)
│ │ ├── @ IntegerNode (location: (17,2)-(17,3))
│ │ │ ├── flags: decimal
│ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (18,2)-(18,3))
│ │ ├── flags: decimal
│ │ └── value: 2
│ ├── opening_loc: (16,6)-(16,7) = "("
│ └── closing_loc: (19,0)-(19,1) = ")"
├── @ ReturnNode (location: (21,0)-(21,8))
│ ├── flags: ∅
│ ├── keyword_loc: (21,0)-(21,6) = "return"
│ └── arguments:
│ @ ArgumentsNode (location: (21,6)-(21,8))
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ ParenthesesNode (location: (21,6)-(21,8))
│ ├── body: ∅
│ ├── opening_loc: (21,6)-(21,7) = "("
│ └── closing_loc: (21,7)-(21,8) = ")"
└── @ ReturnNode (location: (23,0)-(23,9))
├── flags: ∅
├── keyword_loc: (23,0)-(23,6) = "return"
└── arguments:
@ ArgumentsNode (location: (23,6)-(23,9))
├── flags: ∅
└── arguments: (length: 1)
└── @ ParenthesesNode (location: (23,6)-(23,9))
├── body:
│ @ StatementsNode (location: (23,7)-(23,8))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (23,7)-(23,8))
│ ├── flags: decimal
│ └── value: 1
├── opening_loc: (23,6)-(23,7) = "("
└── closing_loc: (23,8)-(23,9) = ")"
|