Lines Matching refs:CommonTree
7 from antlr3.tree import (CommonTreeNodeStream, CommonTree, CommonTreeAdaptor,
25 t = CommonTree(CommonToken(101))
38 class V(CommonTree):
71 t = CommonTree(CommonToken(101))
72 t.addChild(CommonTree(CommonToken(102)))
73 t.getChild(0).addChild(CommonTree(CommonToken(103)))
74 t.addChild(CommonTree(CommonToken(104)))
87 root = CommonTree(None)
89 t = CommonTree(CommonToken(101))
90 t.addChild(CommonTree(CommonToken(102)))
91 t.getChild(0).addChild(CommonTree(CommonToken(103)))
92 t.addChild(CommonTree(CommonToken(104)))
94 u = CommonTree(CommonToken(105))
110 root = CommonTree(None)
112 root.addChild(CommonTree(CommonToken(101)))
113 root.addChild(CommonTree(CommonToken(102)))
114 root.addChild(CommonTree(CommonToken(103)))
127 root = CommonTree(None)
129 root.addChild(CommonTree(CommonToken(101)))
142 t = CommonTree(CommonToken(101))
143 t.addChild(CommonTree(CommonToken(102)))
157 t = CommonTree(CommonToken(101))
158 t.addChild(CommonTree(CommonToken(102)))
159 t.getChild(0).addChild(CommonTree(CommonToken(103)))
160 t.addChild(CommonTree(CommonToken(104)))
180 r0 = CommonTree(CommonToken(101))
181 r1 = CommonTree(CommonToken(102))
183 r1.addChild(CommonTree(CommonToken(103)))
184 r2 = CommonTree(CommonToken(106))
185 r2.addChild(CommonTree(CommonToken(107)))
187 r0.addChild(CommonTree(CommonToken(104)))
188 r0.addChild(CommonTree(CommonToken(105)))
213 r0 = CommonTree(CommonToken(101))
214 r1 = CommonTree(CommonToken(102))
216 r1.addChild(CommonTree(CommonToken(103)))
217 r2 = CommonTree(CommonToken(106))
218 r2.addChild(CommonTree(CommonToken(107)))
220 r0.addChild(CommonTree(CommonToken(104)))
221 r0.addChild(CommonTree(CommonToken(105)))
257 r0 = CommonTree(CommonToken(101))
258 r1 = CommonTree(CommonToken(102))
260 r1.addChild(CommonTree(CommonToken(103)))
261 r2 = CommonTree(CommonToken(106))
262 r2.addChild(CommonTree(CommonToken(107)))
264 r0.addChild(CommonTree(CommonToken(104)))
265 r0.addChild(CommonTree(CommonToken(105)))
296 r0 = CommonTree(CommonToken(101))
297 r1 = CommonTree(CommonToken(102))
299 r1.addChild(CommonTree(CommonToken(103)))
300 r2 = CommonTree(CommonToken(106))
301 r2.addChild(CommonTree(CommonToken(107)))
303 r0.addChild(CommonTree(CommonToken(104)))
304 r0.addChild(CommonTree(CommonToken(105)))
322 r0 = CommonTree(CommonToken(101))
323 r1 = CommonTree(CommonToken(102))
325 r1.addChild(CommonTree(CommonToken(103)))
326 r2 = CommonTree(CommonToken(106))
327 r2.addChild(CommonTree(CommonToken(107)))
329 r0.addChild(CommonTree(CommonToken(104)))
330 r0.addChild(CommonTree(CommonToken(105)))
345 r0 = CommonTree(CommonToken(101))
346 r1 = CommonTree(CommonToken(102))
348 r1.addChild(CommonTree(CommonToken(103)))
349 r2 = CommonTree(CommonToken(106))
350 r2.addChild(CommonTree(CommonToken(107)))
352 r0.addChild(CommonTree(CommonToken(104)))
353 r0.addChild(CommonTree(CommonToken(105)))
363 r0 = CommonTree(CommonToken(101))
364 r1 = CommonTree(CommonToken(102))
366 r1.addChild(CommonTree(CommonToken(103)))
367 r2 = CommonTree(CommonToken(106))
368 r2.addChild(CommonTree(CommonToken(107)))
370 r0.addChild(CommonTree(CommonToken(104)))
371 r0.addChild(CommonTree(CommonToken(105)))
399 r0 = CommonTree(CommonToken(101))
400 r1 = CommonTree(CommonToken(102))
401 r1.addChild(CommonTree(CommonToken(103)))
403 r2 = CommonTree(CommonToken(104))
404 r2.addChild(CommonTree(CommonToken(105)))
406 r3 = CommonTree(CommonToken(106))
407 r3.addChild(CommonTree(CommonToken(107)))
409 r0.addChild(CommonTree(CommonToken(108)))
410 r0.addChild(CommonTree(CommonToken(109)))
443 r0 = CommonTree(CommonToken(101))
444 r1 = CommonTree(CommonToken(102))
445 r1.addChild(CommonTree(CommonToken(103)))
447 r2 = CommonTree(CommonToken(104))
448 r2.addChild(CommonTree(CommonToken(105)))
450 r3 = CommonTree(CommonToken(106))
451 r3.addChild(CommonTree(CommonToken(107)))
453 r0.addChild(CommonTree(CommonToken(108)))
454 r0.addChild(CommonTree(CommonToken(109)))
499 r0 = CommonTree(CommonToken(101))
500 r1 = CommonTree(CommonToken(102))
501 r1.addChild(CommonTree(CommonToken(103)))
503 r2 = CommonTree(CommonToken(104))
504 r2.addChild(CommonTree(CommonToken(105)))
506 r3 = CommonTree(CommonToken(106))
507 r3.addChild(CommonTree(CommonToken(107)))
509 r0.addChild(CommonTree(CommonToken(108)))
510 r0.addChild(CommonTree(CommonToken(109)))
558 t = CommonTree(CommonToken(101))
565 r0 = CommonTree(CommonToken(101))
566 r0.addChild(CommonTree(CommonToken(102)))
567 r0.getChild(0).addChild(CommonTree(CommonToken(103)))
568 r0.addChild(CommonTree(CommonToken(104)))
576 r0 = CommonTree(None)
577 c0=CommonTree(CommonToken(101))
579 c1=CommonTree(CommonToken(102))
581 c2=CommonTree(CommonToken(103))
597 root = CommonTree(CommonToken(5))
600 r0 = CommonTree(None)
601 c0=CommonTree(CommonToken(101))
603 c1=CommonTree(CommonToken(102))
605 c2=CommonTree(CommonToken(103))
624 root = CommonTree(CommonToken(5))
625 root.addChild(CommonTree(CommonToken(6)))
628 r0 = CommonTree(None)
629 c0=CommonTree(CommonToken(101))
631 c1=CommonTree(CommonToken(102))
633 c2=CommonTree(CommonToken(103))
651 r0 = CommonTree(CommonToken(101))
652 r1 = CommonTree(CommonToken(102))
654 r1.addChild(CommonTree(CommonToken(103)))
655 r2 = CommonTree(CommonToken(106))
656 r2.addChild(CommonTree(CommonToken(107)))
658 r0.addChild(CommonTree(CommonToken(104)))
659 r0.addChild(CommonTree(CommonToken(105)))
670 newRoot = CommonTree(CommonToken(5))
672 oldRoot = CommonTree(None)
673 oldRoot.addChild(CommonTree(CommonToken(101)))
674 oldRoot.addChild(CommonTree(CommonToken(102)))
675 oldRoot.addChild(CommonTree(CommonToken(103)))
683 newRoot = CommonTree(CommonToken(5))
685 oldRoot = CommonTree(CommonToken(101))
686 oldRoot.addChild(CommonTree(CommonToken(102)))
687 oldRoot.addChild(CommonTree(CommonToken(103)))
695 newRoot = CommonTree(None)
696 newRoot.addChild(CommonTree(CommonToken(5)))
698 oldRoot = CommonTree(None)
699 oldRoot.addChild(CommonTree(CommonToken(101)))
700 oldRoot.addChild(CommonTree(CommonToken(102)))
701 oldRoot.addChild(CommonTree(CommonToken(103)))
709 newRoot = CommonTree(None)
710 newRoot.addChild(CommonTree(CommonToken(5)))
712 oldRoot = CommonTree(CommonToken(101))
713 oldRoot.addChild(CommonTree(CommonToken(102)))
714 oldRoot.addChild(CommonTree(CommonToken(103)))
724 root_1 = self.adaptor.becomeRoot(CommonTree(CommonToken(5)), root_1)
726 self.adaptor.addChild(root_1, CommonTree(CommonToken(6)))
736 t = CommonTree(CommonToken(101))
737 newChild = CommonTree(CommonToken(5))
750 t = CommonTree(CommonToken(99, text="a"))
751 c0 = CommonTree(CommonToken(99, text="b"))
754 newChild = CommonTree(CommonToken(99, text="c"))
762 t = CommonTree(CommonToken(99, text="a"))
763 t.addChild(CommonTree(CommonToken(99, text="b")))
764 t.addChild(CommonTree(CommonToken(99, text="c"))) # index 1
765 t.addChild(CommonTree(CommonToken(99, text="d")))
767 newChild = CommonTree(CommonToken(99, text="x"))
775 t = CommonTree(CommonToken(99, text="a"))
776 t.addChild(CommonTree(CommonToken(99, text="b"))) # index 0
777 t.addChild(CommonTree(CommonToken(99, text="c")))
778 t.addChild(CommonTree(CommonToken(99, text="d")))
780 newChild = CommonTree(CommonToken(99, text="x"))
788 t = CommonTree(CommonToken(99, text="a"))
789 t.addChild(CommonTree(CommonToken(99, text="b")))
790 t.addChild(CommonTree(CommonToken(99, text="c")))
791 t.addChild(CommonTree(CommonToken(99, text="d"))) # index 2
793 newChild = CommonTree(CommonToken(99, text="x"))
801 t = CommonTree(CommonToken(99, text="a"))
802 t.addChild(CommonTree(CommonToken(99, text="b")))
803 t.addChild(CommonTree(CommonToken(99, text="c")))
804 t.addChild(CommonTree(CommonToken(99, text="d")))
807 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
808 newChildren.addChild(CommonTree(CommonToken(99, text="y")))
817 t = CommonTree(CommonToken(99, text="a"))
818 t.addChild(CommonTree(CommonToken(99, text="b")))
819 t.addChild(CommonTree(CommonToken(99, text="c")))
820 t.addChild(CommonTree(CommonToken(99, text="d")))
823 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
824 newChildren.addChild(CommonTree(CommonToken(99, text="y")))
833 t = CommonTree(CommonToken(99, text="a"))
834 t.addChild(CommonTree(CommonToken(99, text="b")))
835 t.addChild(CommonTree(CommonToken(99, text="c")))
836 t.addChild(CommonTree(CommonToken(99, text="d")))
839 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
840 newChildren.addChild(CommonTree(CommonToken(99, text="y")))
849 t = CommonTree(CommonToken(99, text="a"))
850 t.addChild(CommonTree(CommonToken(99, text="b")))
851 t.addChild(CommonTree(CommonToken(99, text="c")))
852 t.addChild(CommonTree(CommonToken(99, text="d")))
854 newChild = CommonTree(CommonToken(99, text="x"))
863 t = CommonTree(CommonToken(99, text="a"))
864 t.addChild(CommonTree(CommonToken(99, text="b")))
865 t.addChild(CommonTree(CommonToken(99, text="c")))
866 t.addChild(CommonTree(CommonToken(99, text="d")))
868 newChild = CommonTree(CommonToken(99, text="x"))
877 t = CommonTree(CommonToken(99, text="a"))
878 t.addChild(CommonTree(CommonToken(99, text="b")))
879 t.addChild(CommonTree(CommonToken(99, text="c")))
880 t.addChild(CommonTree(CommonToken(99, text="d")))
882 newChild = CommonTree(CommonToken(99, text="x"))
891 t = CommonTree(CommonToken(99, text="a"))
892 t.addChild(CommonTree(CommonToken(99, text="b")))
893 t.addChild(CommonTree(CommonToken(99, text="c")))
894 t.addChild(CommonTree(CommonToken(99, text="d")))
897 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
898 newChildren.addChild(CommonTree(CommonToken(99, text="y")))