]> git.madduck.net Git - etc/vim.git/blob - tests/debug_visitor.out

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

acks += beterbe
[etc/vim.git] / tests / debug_visitor.out
1 file_input
2   decorated
3     decorator
4       AT
5  '@'
6       NAME
7  'dataclass'
8       NEWLINE
9  '\n'
10     /decorator
11     classdef
12       NAME
13  'class'
14       NAME
15  ' '
16  'DebugVisitor'
17       LPAR
18  '('
19       power
20         NAME
21  'Visitor'
22         trailer
23           LSQB
24  '['
25           NAME
26  'T'
27           RSQB
28  ']'
29         /trailer
30       /power
31       RPAR
32  ')'
33       COLON
34  ':'
35       suite
36         NEWLINE
37  '\n'
38         INDENT
39  '    '
40         simple_stmt
41           expr_stmt
42             NAME
43  'tree_depth'
44             annassign
45               COLON
46  ':'
47               NAME
48  ' '
49  'int'
50               EQUAL
51  ' '
52  '='
53               NUMBER
54  ' '
55  '0'
56             /annassign
57           /expr_stmt
58           NEWLINE
59  '\n'
60         /simple_stmt
61         funcdef
62           NAME
63  '\n    '
64  'def'
65           NAME
66  ' '
67  'visit_default'
68           parameters
69             LPAR
70  '('
71             typedargslist
72               NAME
73  'self'
74               COMMA
75  ','
76               tname
77                 NAME
78  ' '
79  'node'
80                 COLON
81  ':'
82                 NAME
83  ' '
84  'LN'
85               /tname
86             /typedargslist
87             RPAR
88  ')'
89           /parameters
90           RARROW
91  ' '
92  '->'
93           power
94             NAME
95  ' '
96  'Iterator'
97             trailer
98               LSQB
99  '['
100               NAME
101  'T'
102               RSQB
103  ']'
104             /trailer
105           /power
106           COLON
107  ':'
108           suite
109             NEWLINE
110  '\n'
111             INDENT
112  '        '
113             simple_stmt
114               expr_stmt
115                 NAME
116  'indent'
117                 EQUAL
118  ' '
119  '='
120                 term
121                   STRING
122  ' '
123  "' '"
124                   STAR
125  ' '
126  '*'
127                   atom
128                     LPAR
129  ' '
130  '('
131                     term
132                       NUMBER
133  '2'
134                       STAR
135  ' '
136  '*'
137                       power
138                         NAME
139  ' '
140  'self'
141                         trailer
142                           DOT
143  '.'
144                           NAME
145  'tree_depth'
146                         /trailer
147                       /power
148                     /term
149                     RPAR
150  ')'
151                   /atom
152                 /term
153               /expr_stmt
154               NEWLINE
155  '\n'
156             /simple_stmt
157             if_stmt
158               NAME
159  '        '
160  'if'
161               power
162                 NAME
163  ' '
164  'isinstance'
165                 trailer
166                   LPAR
167  '('
168                   arglist
169                     NAME
170  'node'
171                     COMMA
172  ','
173                     NAME
174  ' '
175  'Node'
176                   /arglist
177                   RPAR
178  ')'
179                 /trailer
180               /power
181               COLON
182  ':'
183               suite
184                 NEWLINE
185  '\n'
186                 INDENT
187  '            '
188                 simple_stmt
189                   expr_stmt
190                     NAME
191  '_type'
192                     EQUAL
193  ' '
194  '='
195                     power
196                       NAME
197  ' '
198  'type_repr'
199                       trailer
200                         LPAR
201  '('
202                         power
203                           NAME
204  'node'
205                           trailer
206                             DOT
207  '.'
208                             NAME
209  'type'
210                           /trailer
211                         /power
212                         RPAR
213  ')'
214                       /trailer
215                     /power
216                   /expr_stmt
217                   NEWLINE
218  '\n'
219                 /simple_stmt
220                 simple_stmt
221                   power
222                     NAME
223  '            '
224  'out'
225                     trailer
226                       LPAR
227  '('
228                       arglist
229                         STRING
230  "f'{indent}{_type}'"
231                         COMMA
232  ','
233                         argument
234                           NAME
235  ' '
236  'fg'
237                           EQUAL
238  '='
239                           STRING
240  "'yellow'"
241                         /argument
242                       /arglist
243                       RPAR
244  ')'
245                     /trailer
246                   /power
247                   NEWLINE
248  '\n'
249                 /simple_stmt
250                 simple_stmt
251                   expr_stmt
252                     power
253                       NAME
254  '            '
255  'self'
256                       trailer
257                         DOT
258  '.'
259                         NAME
260  'tree_depth'
261                       /trailer
262                     /power
263                     PLUSEQUAL
264  ' '
265  '+='
266                     NUMBER
267  ' '
268  '1'
269                   /expr_stmt
270                   NEWLINE
271  '\n'
272                 /simple_stmt
273                 for_stmt
274                   NAME
275  '            '
276  'for'
277                   NAME
278  ' '
279  'child'
280                   NAME
281  ' '
282  'in'
283                   power
284                     NAME
285  ' '
286  'node'
287                     trailer
288                       DOT
289  '.'
290                       NAME
291  'children'
292                     /trailer
293                   /power
294                   COLON
295  ':'
296                   suite
297                     NEWLINE
298  '\n'
299                     INDENT
300  '                '
301                     simple_stmt
302                       yield_expr
303                         NAME
304  'yield'
305                         yield_arg
306                           NAME
307  ' '
308  'from'
309                           power
310                             NAME
311  ' '
312  'self'
313                             trailer
314                               DOT
315  '.'
316                               NAME
317  'visit'
318                             /trailer
319                             trailer
320                               LPAR
321  '('
322                               NAME
323  'child'
324                               RPAR
325  ')'
326                             /trailer
327                           /power
328                         /yield_arg
329                       /yield_expr
330                       NEWLINE
331  '\n'
332                     /simple_stmt
333                     DEDENT
334  ''
335                   /suite
336                 /for_stmt
337                 simple_stmt
338                   expr_stmt
339                     power
340                       NAME
341  '\n            '
342  'self'
343                       trailer
344                         DOT
345  '.'
346                         NAME
347  'tree_depth'
348                       /trailer
349                     /power
350                     MINEQUAL
351  ' '
352  '-='
353                     NUMBER
354  ' '
355  '1'
356                   /expr_stmt
357                   NEWLINE
358  '\n'
359                 /simple_stmt
360                 simple_stmt
361                   power
362                     NAME
363  '            '
364  'out'
365                     trailer
366                       LPAR
367  '('
368                       arglist
369                         STRING
370  "f'{indent}/{_type}'"
371                         COMMA
372  ','
373                         argument
374                           NAME
375  ' '
376  'fg'
377                           EQUAL
378  '='
379                           STRING
380  "'yellow'"
381                         /argument
382                         COMMA
383  ','
384                         argument
385                           NAME
386  ' '
387  'bold'
388                           EQUAL
389  '='
390                           NAME
391  'False'
392                         /argument
393                       /arglist
394                       RPAR
395  ')'
396                     /trailer
397                   /power
398                   NEWLINE
399  '\n'
400                 /simple_stmt
401                 DEDENT
402  ''
403               /suite
404               NAME
405  '        '
406  'else'
407               COLON
408  ':'
409               suite
410                 NEWLINE
411  '\n'
412                 INDENT
413  '            '
414                 simple_stmt
415                   expr_stmt
416                     NAME
417  '_type'
418                     EQUAL
419  ' '
420  '='
421                     power
422                       NAME
423  ' '
424  'token'
425                       trailer
426                         DOT
427  '.'
428                         NAME
429  'tok_name'
430                       /trailer
431                       trailer
432                         DOT
433  '.'
434                         NAME
435  'get'
436                       /trailer
437                       trailer
438                         LPAR
439  '('
440                         arglist
441                           power
442                             NAME
443  'node'
444                             trailer
445                               DOT
446  '.'
447                               NAME
448  'type'
449                             /trailer
450                           /power
451                           COMMA
452  ','
453                           power
454                             NAME
455  ' '
456  'str'
457                             trailer
458                               LPAR
459  '('
460                               power
461                                 NAME
462  'node'
463                                 trailer
464                                   DOT
465  '.'
466                                   NAME
467  'type'
468                                 /trailer
469                               /power
470                               RPAR
471  ')'
472                             /trailer
473                           /power
474                         /arglist
475                         RPAR
476  ')'
477                       /trailer
478                     /power
479                   /expr_stmt
480                   NEWLINE
481  '\n'
482                 /simple_stmt
483                 simple_stmt
484                   power
485                     NAME
486  '            '
487  'out'
488                     trailer
489                       LPAR
490  '('
491                       arglist
492                         STRING
493  "f'{indent}{_type}'"
494                         COMMA
495  ','
496                         argument
497                           NAME
498  ' '
499  'fg'
500                           EQUAL
501  '='
502                           STRING
503  "'blue'"
504                         /argument
505                         COMMA
506  ','
507                         argument
508                           NAME
509  ' '
510  'nl'
511                           EQUAL
512  '='
513                           NAME
514  'False'
515                         /argument
516                       /arglist
517                       RPAR
518  ')'
519                     /trailer
520                   /power
521                   NEWLINE
522  '\n'
523                 /simple_stmt
524                 if_stmt
525                   NAME
526  '            '
527  'if'
528                   power
529                     NAME
530  ' '
531  'node'
532                     trailer
533                       DOT
534  '.'
535                       NAME
536  'prefix'
537                     /trailer
538                   /power
539                   COLON
540  ':'
541                   suite
542                     NEWLINE
543  '\n'
544                     INDENT
545  '                '
546                     simple_stmt
547                       power
548                         NAME
549  "# We don't have to handle prefixes for `Node` objects since\n                # that delegates to the first child anyway.\n                "
550  'out'
551                         trailer
552                           LPAR
553  '('
554                           arglist
555                             STRING
556  "f' {node.prefix!r}'"
557                             COMMA
558  ','
559                             argument
560                               NAME
561  ' '
562  'fg'
563                               EQUAL
564  '='
565                               STRING
566  "'green'"
567                             /argument
568                             COMMA
569  ','
570                             argument
571                               NAME
572  ' '
573  'bold'
574                               EQUAL
575  '='
576                               NAME
577  'False'
578                             /argument
579                             COMMA
580  ','
581                             argument
582                               NAME
583  ' '
584  'nl'
585                               EQUAL
586  '='
587                               NAME
588  'False'
589                             /argument
590                           /arglist
591                           RPAR
592  ')'
593                         /trailer
594                       /power
595                       NEWLINE
596  '\n'
597                     /simple_stmt
598                     DEDENT
599  ''
600                   /suite
601                 /if_stmt
602                 simple_stmt
603                   power
604                     NAME
605  '            '
606  'out'
607                     trailer
608                       LPAR
609  '('
610                       arglist
611                         STRING
612  "f' {node.value!r}'"
613                         COMMA
614  ','
615                         argument
616                           NAME
617  ' '
618  'fg'
619                           EQUAL
620  '='
621                           STRING
622  "'blue'"
623                         /argument
624                         COMMA
625  ','
626                         argument
627                           NAME
628  ' '
629  'bold'
630                           EQUAL
631  '='
632                           NAME
633  'False'
634                         /argument
635                       /arglist
636                       RPAR
637  ')'
638                     /trailer
639                   /power
640                   NEWLINE
641  '\n'
642                 /simple_stmt
643                 DEDENT
644  ''
645               /suite
646             /if_stmt
647             DEDENT
648  ''
649           /suite
650         /funcdef
651         decorated
652           decorator
653             AT
654  '\n    '
655  '@'
656             NAME
657  'classmethod'
658             NEWLINE
659  '\n'
660           /decorator
661           funcdef
662             NAME
663  '    '
664  'def'
665             NAME
666  ' '
667  'show'
668             parameters
669               LPAR
670  '('
671               typedargslist
672                 NAME
673  'cls'
674                 COMMA
675  ','
676                 tname
677                   NAME
678  ' '
679  'code'
680                   COLON
681  ':'
682                   NAME
683  ' '
684  'str'
685                 /tname
686               /typedargslist
687               RPAR
688  ')'
689             /parameters
690             RARROW
691  ' '
692  '->'
693             NAME
694  ' '
695  'None'
696             COLON
697  ':'
698             suite
699               NEWLINE
700  '\n'
701               INDENT
702  '        '
703               simple_stmt
704                 STRING
705  '"""Pretty-prints a given string of `code`.\n\n        Convenience method for debugging.\n        """'
706                 NEWLINE
707  '\n'
708               /simple_stmt
709               simple_stmt
710                 expr_stmt
711                   NAME
712  '        '
713  'v'
714                   annassign
715                     COLON
716  ':'
717                     power
718                       NAME
719  ' '
720  'DebugVisitor'
721                       trailer
722                         LSQB
723  '['
724                         NAME
725  'None'
726                         RSQB
727  ']'
728                       /trailer
729                     /power
730                     EQUAL
731  ' '
732  '='
733                     power
734                       NAME
735  ' '
736  'DebugVisitor'
737                       trailer
738                         LPAR
739  '('
740                         RPAR
741  ')'
742                       /trailer
743                     /power
744                   /annassign
745                 /expr_stmt
746                 NEWLINE
747  '\n'
748               /simple_stmt
749               simple_stmt
750                 power
751                   NAME
752  '        '
753  'list'
754                   trailer
755                     LPAR
756  '('
757                     power
758                       NAME
759  'v'
760                       trailer
761                         DOT
762  '.'
763                         NAME
764  'visit'
765                       /trailer
766                       trailer
767                         LPAR
768  '('
769                         power
770                           NAME
771  'lib2to3_parse'
772                           trailer
773                             LPAR
774  '('
775                             NAME
776  'code'
777                             RPAR
778  ')'
779                           /trailer
780                         /power
781                         RPAR
782  ')'
783                       /trailer
784                     /power
785                     RPAR
786  ')'
787                   /trailer
788                 /power
789                 NEWLINE
790  '\n'
791               /simple_stmt
792               DEDENT
793  ''
794             /suite
795           /funcdef
796         /decorated
797         DEDENT
798  ''
799       /suite
800     /classdef
801   /decorated
802   ENDMARKER
803  ''
804 /file_input