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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
|
@ ProgramNode (location: (1,0)-(57,11))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(57,11))
└── body: (length: 13)
├── @ StringNode (location: (1,0)-(1,6))
│ ├── flags: ∅
│ ├── opening_loc: (1,0)-(1,6) = "<<-EOF"
│ ├── content_loc: (2,0)-(2,0) = " a\n"
│ ├── closing_loc: (3,0)-(3,0) = "EOF\n"
│ └── unescaped: " a\n"
├── @ CallNode (location: (5,0)-(5,20))
│ ├── receiver:
│ │ @ StringNode (location: (5,0)-(5,8))
│ │ ├── flags: ∅
│ │ ├── opening_loc: (5,0)-(5,8) = "<<-FIRST"
│ │ ├── content_loc: (6,0)-(6,0) = " a\n"
│ │ ├── closing_loc: (7,0)-(7,0) = "FIRST\n"
│ │ └── unescaped: " a\n"
│ ├── call_operator_loc: ∅
│ ├── message_loc: (5,9)-(5,10) = "+"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (5,11)-(5,20))
│ │ └── arguments: (length: 1)
│ │ └── @ StringNode (location: (5,11)-(5,20))
│ │ ├── flags: ∅
│ │ ├── opening_loc: (5,11)-(5,20) = "<<-SECOND"
│ │ ├── content_loc: (8,0)-(8,0) = " b\n"
│ │ ├── closing_loc: (9,0)-(9,0) = "SECOND\n"
│ │ └── unescaped: " b\n"
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
│ └── name: "+"
├── @ InterpolatedXStringNode (location: (11,0)-(11,8))
│ ├── opening_loc: (11,0)-(11,8) = "<<-`EOF`"
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (12,0)-(12,0))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (12,0)-(12,0) = " a\n"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: " a\n"
│ │ ├── @ EmbeddedStatementsNode (location: (13,0)-(13,4))
│ │ │ ├── opening_loc: (13,0)-(13,2) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (13,2)-(13,3))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ CallNode (location: (13,2)-(13,3))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── message_loc: (13,2)-(13,3) = "b"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: "b"
│ │ │ └── closing_loc: (13,3)-(13,4) = "}"
│ │ └── @ StringNode (location: (13,4)-(13,0))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (13,4)-(13,0) = "\n"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "\n"
│ └── closing_loc: (14,0)-(14,0) = "EOF\n"
├── @ StringNode (location: (16,0)-(16,6))
│ ├── flags: ∅
│ ├── opening_loc: (16,0)-(16,6) = "<<-EOF"
│ ├── content_loc: (17,0)-(17,0) = " a\n"
│ ├── closing_loc: (18,0)-(18,0) = "EOF\n"
│ └── unescaped: " a\n"
├── @ StringNode (location: (20,0)-(20,6))
│ ├── flags: ∅
│ ├── opening_loc: (20,0)-(20,6) = "<<-EOF"
│ ├── content_loc: (21,0)-(22,0) = " a\n b\n"
│ ├── closing_loc: (23,0)-(23,0) = " EOF\n"
│ └── unescaped: " a\n b\n"
├── @ InterpolatedStringNode (location: (25,0)-(25,8))
│ ├── opening_loc: (25,0)-(25,8) = "<<-\"EOF\""
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (26,0)-(26,0))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (26,0)-(26,0) = " a\n"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: " a\n"
│ │ ├── @ EmbeddedStatementsNode (location: (27,0)-(27,4))
│ │ │ ├── opening_loc: (27,0)-(27,2) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (27,2)-(27,3))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ CallNode (location: (27,2)-(27,3))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── message_loc: (27,2)-(27,3) = "b"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: "b"
│ │ │ └── closing_loc: (27,3)-(27,4) = "}"
│ │ └── @ StringNode (location: (27,4)-(27,0))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (27,4)-(27,0) = "\n"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "\n"
│ └── closing_loc: (28,0)-(28,0) = "EOF\n"
├── @ InterpolatedStringNode (location: (30,0)-(30,6))
│ ├── opening_loc: (30,0)-(30,6) = "<<-EOF"
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (31,0)-(31,0))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (31,0)-(31,0) = " a\n"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: " a\n"
│ │ ├── @ EmbeddedStatementsNode (location: (32,0)-(32,4))
│ │ │ ├── opening_loc: (32,0)-(32,2) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (32,2)-(32,3))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ CallNode (location: (32,2)-(32,3))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── message_loc: (32,2)-(32,3) = "b"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: "b"
│ │ │ └── closing_loc: (32,3)-(32,4) = "}"
│ │ └── @ StringNode (location: (32,4)-(32,0))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (32,4)-(32,0) = "\n"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "\n"
│ └── closing_loc: (33,0)-(33,0) = "EOF\n"
├── @ StringNode (location: (35,0)-(35,6))
│ ├── flags: ∅
│ ├── opening_loc: (35,0)-(35,2) = "%#"
│ ├── content_loc: (35,2)-(35,5) = "abc"
│ ├── closing_loc: (35,5)-(35,6) = "#"
│ └── unescaped: "abc"
├── @ StringNode (location: (37,0)-(37,6))
│ ├── flags: ∅
│ ├── opening_loc: (37,0)-(37,6) = "<<-EOF"
│ ├── content_loc: (38,0)-(39,0) = " a\n b\n"
│ ├── closing_loc: (40,0)-(40,0) = "EOF\n"
│ └── unescaped: " a\n b\n"
├── @ StringNode (location: (42,0)-(42,5))
│ ├── flags: ∅
│ ├── opening_loc: (42,0)-(42,5) = "<<-''"
│ ├── content_loc: (43,0)-(42,0) = ""
│ ├── closing_loc: (43,0)-(43,0) = "\n"
│ └── unescaped: ""
├── @ StringNode (location: (45,0)-(45,8))
│ ├── flags: ∅
│ ├── opening_loc: (45,0)-(45,8) = "<<-'EOF'"
│ ├── content_loc: (46,0)-(46,0) = " a \#{1}\n"
│ ├── closing_loc: (47,0)-(47,0) = "EOF\n"
│ └── unescaped: " a \#{1}\n"
├── @ CallNode (location: (49,0)-(49,11))
│ ├── receiver:
│ │ @ StringNode (location: (49,0)-(49,4))
│ │ ├── flags: ∅
│ │ ├── opening_loc: (49,0)-(49,4) = "<<-A"
│ │ ├── content_loc: (50,0)-(50,0) = " a\n"
│ │ ├── closing_loc: (51,0)-(51,0) = "A\n"
│ │ └── unescaped: " a\n"
│ ├── call_operator_loc: ∅
│ ├── message_loc: (49,5)-(49,6) = "+"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (49,7)-(49,11))
│ │ └── arguments: (length: 1)
│ │ └── @ InterpolatedStringNode (location: (49,7)-(49,11))
│ │ ├── opening_loc: (49,7)-(49,11) = "<<-B"
│ │ ├── parts: (length: 3)
│ │ │ ├── @ StringNode (location: (52,0)-(53,2))
│ │ │ │ ├── flags: ∅
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── content_loc: (52,0)-(53,2) = " b\n "
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── unescaped: " b\n "
│ │ │ ├── @ EmbeddedStatementsNode (location: (53,2)-(54,3))
│ │ │ │ ├── opening_loc: (53,2)-(53,4) = "\#{"
│ │ │ │ ├── statements:
│ │ │ │ │ @ StatementsNode (location: (53,4)-(53,5))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (53,4)-(53,5))
│ │ │ │ │ └── flags: decimal
│ │ │ │ └── closing_loc: (54,2)-(54,3) = "}"
│ │ │ └── @ StringNode (location: (54,3)-(54,0))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (54,3)-(54,0) = "\n"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "\n"
│ │ └── closing_loc: (55,0)-(55,0) = "B\n"
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
│ └── name: "+"
└── @ CallNode (location: (57,0)-(57,11))
├── receiver:
│ @ StringNode (location: (57,0)-(57,4))
│ ├── flags: ∅
│ ├── opening_loc: (57,0)-(57,4) = "<<-A"
│ ├── content_loc: (58,0)-(58,0) = " a\n"
│ ├── closing_loc: (59,0)-(59,0) = "A\n"
│ └── unescaped: " a\n"
├── call_operator_loc: ∅
├── message_loc: (57,5)-(57,6) = "+"
├── opening_loc: ∅
├── arguments:
│ @ ArgumentsNode (location: (57,7)-(57,11))
│ └── arguments: (length: 1)
│ └── @ InterpolatedStringNode (location: (57,7)-(57,11))
│ ├── opening_loc: (57,7)-(57,11) = "<<-B"
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (60,0)-(61,2))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (60,0)-(61,2) = " b\n "
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: " b\n "
│ │ ├── @ EmbeddedStatementsNode (location: (61,2)-(62,4))
│ │ │ ├── opening_loc: (61,2)-(61,4) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (62,2)-(62,3))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (62,2)-(62,3))
│ │ │ │ └── flags: decimal
│ │ │ └── closing_loc: (62,3)-(62,4) = "}"
│ │ └── @ StringNode (location: (62,4)-(62,0))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (62,4)-(62,0) = "\n"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "\n"
│ └── closing_loc: (63,0)-(63,0) = "B\n"
├── closing_loc: ∅
├── block: ∅
├── flags: ∅
└── name: "+"
|