Debian Codegraph @

tests/reference.json

raw symbols SCIP
1 [
2 {
3 "cmd": "#",
4 "line": 1,
5 "x": {
6 "comment": " Addresses"
7 }
8 },
9 {
10 "a1": {
11 "addr_number": 11,
12 "addr_type": 3
13 },
14 "cmd": "p",
15 "line": 2
16 },
17 {
18 "a1": {
19 "addr_number": 21,
20 "addr_type": 3
21 },
22 "a2": {
23 "addr_number": 22,
24 "addr_type": 3
25 },
26 "cmd": "p",
27 "line": 3
28 },
29 {
30 "a1": {
31 "addr_number": 31,
32 "addr_step": 32,
33 "addr_type": 4
34 },
35 "cmd": "p",
36 "line": 4
37 },
38 {
39 "a1": {
40 "addr_number": 41,
41 "addr_type": 3
42 },
43 "a2": {
44 "addr_number": 0,
45 "addr_step": 42,
46 "addr_type": 6
47 },
48 "cmd": "p",
49 "line": 5
50 },
51 {
52 "a1": {
53 "addr_number": 51,
54 "addr_type": 3
55 },
56 "a2": {
57 "addr_number": 0,
58 "addr_step": 52,
59 "addr_type": 5
60 },
61 "cmd": "p",
62 "line": 6
63 },
64 {
65 "a1": {
66 "addr_type": 7
67 },
68 "cmd": "p",
69 "line": 7
70 },
71 {
72 "a1": {
73 "addr_regex": {
74 "pattern": "regex-without-flags",
75 "slash": "/"
76 },
77 "addr_type": 2
78 },
79 "cmd": "p",
80 "line": 8
81 },
82 {
83 "a1": {
84 "addr_regex": {
85 "flags": "IM",
86 "pattern": "regex-with-flags",
87 "slash": "/"
88 },
89 "addr_type": 2
90 },
91 "cmd": "p",
92 "line": 9
93 },
94 {
95 "a1": {
96 "addr_regex": {
97 "slash": "/"
98 },
99 "addr_type": 2
100 },
101 "cmd": "p",
102 "line": 10
103 },
104 {
105 "cmd": "\n",
106 "line": 11
107 },
108 {
109 "cmd": "#",
110 "line": 12,
111 "x": {
112 "comment": " Bang to invert addresses"
113 }
114 },
115 {
116 "a1": {
117 "addr_type": 7
118 },
119 "addr_bang": true,
120 "cmd": "p",
121 "line": 13
122 },
123 {
124 "cmd": "\n",
125 "line": 14
126 },
127 {
128 "cmd": "#",
129 "line": 15,
130 "x": {
131 "comment": " Commands with no arguments"
132 }
133 },
134 {
135 "cmd": "=",
136 "line": 16
137 },
138 {
139 "cmd": "b",
140 "line": 17
141 },
142 {
143 "cmd": "d",
144 "line": 18
145 },
146 {
147 "cmd": "D",
148 "line": 19
149 },
150 {
151 "cmd": "F",
152 "line": 20
153 },
154 {
155 "cmd": "g",
156 "line": 21
157 },
158 {
159 "cmd": "G",
160 "line": 22
161 },
162 {
163 "cmd": "h",
164 "line": 23
165 },
166 {
167 "cmd": "H",
168 "line": 24
169 },
170 {
171 "cmd": "l",
172 "line": 25
173 },
174 {
175 "cmd": "L",
176 "line": 26
177 },
178 {
179 "cmd": "n",
180 "line": 27
181 },
182 {
183 "cmd": "N",
184 "line": 28
185 },
186 {
187 "cmd": "p",
188 "line": 29
189 },
190 {
191 "cmd": "P",
192 "line": 30
193 },
194 {
195 "cmd": "q",
196 "line": 31
197 },
198 {
199 "cmd": "Q",
200 "line": 32
201 },
202 {
203 "cmd": "t",
204 "line": 33
205 },
206 {
207 "cmd": "T",
208 "line": 34
209 },
210 {
211 "cmd": "x",
212 "line": 35
213 },
214 {
215 "cmd": "z",
216 "line": 36
217 },
218 {
219 "cmd": "\n",
220 "line": 37
221 },
222 {
223 "cmd": "#",
224 "line": 38,
225 "x": {
226 "comment": " Commands with numeric argument"
227 }
228 },
229 {
230 "cmd": "q",
231 "line": 39,
232 "x": {
233 "int_arg": 1
234 }
235 },
236 {
237 "cmd": "Q",
238 "line": 40,
239 "x": {
240 "int_arg": 22
241 }
242 },
243 {
244 "cmd": "l",
245 "line": 41,
246 "x": {
247 "int_arg": 333
248 }
249 },
250 {
251 "cmd": "L",
252 "line": 42,
253 "x": {
254 "int_arg": 4444
255 }
256 },
257 {
258 "cmd": "\n",
259 "line": 43
260 },
261 {
262 "cmd": "#",
263 "line": 44,
264 "x": {
265 "comment": " Commands with labels"
266 }
267 },
268 {
269 "cmd": ":",
270 "line": 45,
271 "x": {
272 "label_name": "label"
273 }
274 },
275 {
276 "cmd": "b",
277 "line": 46,
278 "x": {
279 "label_name": "label_b"
280 }
281 },
282 {
283 "cmd": "t",
284 "line": 47,
285 "x": {
286 "label_name": "label_t"
287 }
288 },
289 {
290 "cmd": "T",
291 "line": 48,
292 "x": {
293 "label_name": "label_T"
294 }
295 },
296 {
297 "cmd": "\n",
298 "line": 49
299 },
300 {
301 "cmd": "#",
302 "line": 50,
303 "x": {
304 "comment": " Command v (label-like)"
305 }
306 },
307 {
308 "cmd": "v",
309 "line": 51,
310 "x": {
311 "label_name": "4.2"
312 }
313 },
314 {
315 "cmd": "\n",
316 "line": 52
317 },
318 {
319 "cmd": "#",
320 "line": 53,
321 "x": {
322 "comment": " Commands with files"
323 }
324 },
325 {
326 "cmd": "r",
327 "line": 54,
328 "x": {
329 "fname": "file_r"
330 }
331 },
332 {
333 "cmd": "R",
334 "line": 55,
335 "x": {
336 "fname": "file_R"
337 }
338 },
339 {
340 "cmd": "w",
341 "line": 56,
342 "x": {
343 "fname": "file_w"
344 }
345 },
346 {
347 "cmd": "W",
348 "line": 57,
349 "x": {
350 "fname": "file_W"
351 }
352 },
353 {
354 "cmd": "\n",
355 "line": 58
356 },
357 {
358 "cmd": "#",
359 "line": 59,
360 "x": {
361 "comment": " Commands with text"
362 }
363 },
364 {
365 "cmd": "a",
366 "line": 60,
367 "x": {
368 "cmd_txt": {
369 "text": [
370 "t",
371 "e",
372 "x",
373 "t",
374 "_",
375 "a",
376 "\n"
377 ]
378 }
379 }
380 },
381 {
382 "cmd": "i",
383 "line": 61,
384 "x": {
385 "cmd_txt": {
386 "text": [
387 "t",
388 "e",
389 "x",
390 "t",
391 "_",
392 "i",
393 "\n"
394 ]
395 }
396 }
397 },
398 {
399 "cmd": "c",
400 "line": 63,
401 "x": {
402 "cmd_txt": {
403 "text": [
404 "t",
405 "e",
406 "x",
407 "t",
408 "_",
409 "c",
410 "1",
411 " ",
412 "\\",
413 "\n",
414 "t",
415 "e",
416 "x",
417 "t",
418 "_",
419 "c",
420 "2",
421 "\n"
422 ]
423 }
424 }
425 },
426 {
427 "cmd": "\n",
428 "line": 66
429 },
430 {
431 "cmd": "#",
432 "line": 67,
433 "x": {
434 "comment": " Command e (text-like)"
435 }
436 },
437 {
438 "cmd": "e",
439 "line": 68,
440 "x": {
441 "cmd_txt": {
442 "text": [
443 "d",
444 "a",
445 "t",
446 "e",
447 "\n"
448 ]
449 }
450 }
451 },
452 {
453 "cmd": "\n",
454 "line": 69
455 },
456 {
457 "cmd": "#",
458 "line": 70,
459 "x": {
460 "comment": " Command y"
461 }
462 },
463 {
464 "cmd": "y",
465 "line": 71,
466 "x": {
467 "cmd_subst": {
468 "regx": {
469 "pattern": "abc",
470 "slash": "/"
471 },
472 "replacement": {
473 "text": "123"
474 }
475 }
476 }
477 },
478 {
479 "cmd": "y",
480 "line": 72,
481 "x": {
482 "cmd_subst": {
483 "regx": {
484 "pattern": "abc",
485 "slash": "@"
486 },
487 "replacement": {
488 "text": "123"
489 }
490 }
491 }
492 },
493 {
494 "cmd": "\n",
495 "line": 73
496 },
497 {
498 "cmd": "#",
499 "line": 74,
500 "x": {
501 "comment": " Command s"
502 }
503 },
504 {
505 "cmd": "s",
506 "line": 75,
507 "x": {
508 "cmd_subst": {
509 "regx": {
510 "slash": "/"
511 }
512 }
513 }
514 },
515 {
516 "cmd": "s",
517 "line": 76,
518 "x": {
519 "cmd_subst": {
520 "regx": {
521 "flags": "3",
522 "slash": "|"
523 }
524 }
525 }
526 },
527 {
528 "cmd": "s",
529 "line": 77,
530 "x": {
531 "cmd_subst": {
532 "outf": {
533 "name": "filew"
534 },
535 "regx": {
536 "flags": "gipw",
537 "pattern": "patt",
538 "slash": "/"
539 },
540 "replacement": {
541 "text": "repl"
542 }
543 }
544 }
545 },
546 {
547 "cmd": "\n",
548 "line": 78
549 },
550 {
551 "cmd": "#",
552 "line": 79,
553 "x": {
554 "comment": " Blocks"
555 }
556 },
557 {
558 "a1": {
559 "addr_type": 7
560 },
561 "cmd": "{",
562 "line": 80
563 },
564 {
565 "cmd": "p",
566 "line": 81
567 },
568 {
569 "cmd": "}",
570 "line": 82
571 }
572 ]