• Home
  • Raw
  • Download

Lines Matching refs:CommonTree

6 from antlr3.tree import (CommonTreeNodeStream, CommonTree, CommonTreeAdaptor,
24 t = CommonTree(CommonToken(101))
37 class V(CommonTree):
68 t = CommonTree(CommonToken(101))
69 t.addChild(CommonTree(CommonToken(102)))
70 t.getChild(0).addChild(CommonTree(CommonToken(103)))
71 t.addChild(CommonTree(CommonToken(104)))
84 root = CommonTree(None)
86 t = CommonTree(CommonToken(101))
87 t.addChild(CommonTree(CommonToken(102)))
88 t.getChild(0).addChild(CommonTree(CommonToken(103)))
89 t.addChild(CommonTree(CommonToken(104)))
91 u = CommonTree(CommonToken(105))
107 root = CommonTree(None)
109 root.addChild(CommonTree(CommonToken(101)))
110 root.addChild(CommonTree(CommonToken(102)))
111 root.addChild(CommonTree(CommonToken(103)))
124 root = CommonTree(None)
126 root.addChild(CommonTree(CommonToken(101)))
139 t = CommonTree(CommonToken(101))
140 t.addChild(CommonTree(CommonToken(102)))
154 t = CommonTree(CommonToken(101))
155 t.addChild(CommonTree(CommonToken(102)))
156 t.getChild(0).addChild(CommonTree(CommonToken(103)))
157 t.addChild(CommonTree(CommonToken(104)))
177 r0 = CommonTree(CommonToken(101))
178 r1 = CommonTree(CommonToken(102))
180 r1.addChild(CommonTree(CommonToken(103)))
181 r2 = CommonTree(CommonToken(106))
182 r2.addChild(CommonTree(CommonToken(107)))
184 r0.addChild(CommonTree(CommonToken(104)))
185 r0.addChild(CommonTree(CommonToken(105)))
210 r0 = CommonTree(CommonToken(101))
211 r1 = CommonTree(CommonToken(102))
213 r1.addChild(CommonTree(CommonToken(103)))
214 r2 = CommonTree(CommonToken(106))
215 r2.addChild(CommonTree(CommonToken(107)))
217 r0.addChild(CommonTree(CommonToken(104)))
218 r0.addChild(CommonTree(CommonToken(105)))
254 r0 = CommonTree(CommonToken(101))
255 r1 = CommonTree(CommonToken(102))
257 r1.addChild(CommonTree(CommonToken(103)))
258 r2 = CommonTree(CommonToken(106))
259 r2.addChild(CommonTree(CommonToken(107)))
261 r0.addChild(CommonTree(CommonToken(104)))
262 r0.addChild(CommonTree(CommonToken(105)))
293 r0 = CommonTree(CommonToken(101))
294 r1 = CommonTree(CommonToken(102))
296 r1.addChild(CommonTree(CommonToken(103)))
297 r2 = CommonTree(CommonToken(106))
298 r2.addChild(CommonTree(CommonToken(107)))
300 r0.addChild(CommonTree(CommonToken(104)))
301 r0.addChild(CommonTree(CommonToken(105)))
319 r0 = CommonTree(CommonToken(101))
320 r1 = CommonTree(CommonToken(102))
322 r1.addChild(CommonTree(CommonToken(103)))
323 r2 = CommonTree(CommonToken(106))
324 r2.addChild(CommonTree(CommonToken(107)))
326 r0.addChild(CommonTree(CommonToken(104)))
327 r0.addChild(CommonTree(CommonToken(105)))
342 r0 = CommonTree(CommonToken(101))
343 r1 = CommonTree(CommonToken(102))
345 r1.addChild(CommonTree(CommonToken(103)))
346 r2 = CommonTree(CommonToken(106))
347 r2.addChild(CommonTree(CommonToken(107)))
349 r0.addChild(CommonTree(CommonToken(104)))
350 r0.addChild(CommonTree(CommonToken(105)))
360 r0 = CommonTree(CommonToken(101))
361 r1 = CommonTree(CommonToken(102))
363 r1.addChild(CommonTree(CommonToken(103)))
364 r2 = CommonTree(CommonToken(106))
365 r2.addChild(CommonTree(CommonToken(107)))
367 r0.addChild(CommonTree(CommonToken(104)))
368 r0.addChild(CommonTree(CommonToken(105)))
396 r0 = CommonTree(CommonToken(101))
397 r1 = CommonTree(CommonToken(102))
398 r1.addChild(CommonTree(CommonToken(103)))
400 r2 = CommonTree(CommonToken(104))
401 r2.addChild(CommonTree(CommonToken(105)))
403 r3 = CommonTree(CommonToken(106))
404 r3.addChild(CommonTree(CommonToken(107)))
406 r0.addChild(CommonTree(CommonToken(108)))
407 r0.addChild(CommonTree(CommonToken(109)))
440 r0 = CommonTree(CommonToken(101))
441 r1 = CommonTree(CommonToken(102))
442 r1.addChild(CommonTree(CommonToken(103)))
444 r2 = CommonTree(CommonToken(104))
445 r2.addChild(CommonTree(CommonToken(105)))
447 r3 = CommonTree(CommonToken(106))
448 r3.addChild(CommonTree(CommonToken(107)))
450 r0.addChild(CommonTree(CommonToken(108)))
451 r0.addChild(CommonTree(CommonToken(109)))
496 r0 = CommonTree(CommonToken(101))
497 r1 = CommonTree(CommonToken(102))
498 r1.addChild(CommonTree(CommonToken(103)))
500 r2 = CommonTree(CommonToken(104))
501 r2.addChild(CommonTree(CommonToken(105)))
503 r3 = CommonTree(CommonToken(106))
504 r3.addChild(CommonTree(CommonToken(107)))
506 r0.addChild(CommonTree(CommonToken(108)))
507 r0.addChild(CommonTree(CommonToken(109)))
555 t = CommonTree(CommonToken(101))
562 r0 = CommonTree(CommonToken(101))
563 r0.addChild(CommonTree(CommonToken(102)))
564 r0.getChild(0).addChild(CommonTree(CommonToken(103)))
565 r0.addChild(CommonTree(CommonToken(104)))
573 r0 = CommonTree(None)
574 c0=CommonTree(CommonToken(101))
576 c1=CommonTree(CommonToken(102))
578 c2=CommonTree(CommonToken(103))
594 root = CommonTree(CommonToken(5))
597 r0 = CommonTree(None)
598 c0=CommonTree(CommonToken(101))
600 c1=CommonTree(CommonToken(102))
602 c2=CommonTree(CommonToken(103))
621 root = CommonTree(CommonToken(5))
622 root.addChild(CommonTree(CommonToken(6)))
625 r0 = CommonTree(None)
626 c0=CommonTree(CommonToken(101))
628 c1=CommonTree(CommonToken(102))
630 c2=CommonTree(CommonToken(103))
648 r0 = CommonTree(CommonToken(101))
649 r1 = CommonTree(CommonToken(102))
651 r1.addChild(CommonTree(CommonToken(103)))
652 r2 = CommonTree(CommonToken(106))
653 r2.addChild(CommonTree(CommonToken(107)))
655 r0.addChild(CommonTree(CommonToken(104)))
656 r0.addChild(CommonTree(CommonToken(105)))
667 newRoot = CommonTree(CommonToken(5))
669 oldRoot = CommonTree(None)
670 oldRoot.addChild(CommonTree(CommonToken(101)))
671 oldRoot.addChild(CommonTree(CommonToken(102)))
672 oldRoot.addChild(CommonTree(CommonToken(103)))
680 newRoot = CommonTree(CommonToken(5))
682 oldRoot = CommonTree(CommonToken(101))
683 oldRoot.addChild(CommonTree(CommonToken(102)))
684 oldRoot.addChild(CommonTree(CommonToken(103)))
692 newRoot = CommonTree(None)
693 newRoot.addChild(CommonTree(CommonToken(5)))
695 oldRoot = CommonTree(None)
696 oldRoot.addChild(CommonTree(CommonToken(101)))
697 oldRoot.addChild(CommonTree(CommonToken(102)))
698 oldRoot.addChild(CommonTree(CommonToken(103)))
706 newRoot = CommonTree(None)
707 newRoot.addChild(CommonTree(CommonToken(5)))
709 oldRoot = CommonTree(CommonToken(101))
710 oldRoot.addChild(CommonTree(CommonToken(102)))
711 oldRoot.addChild(CommonTree(CommonToken(103)))
721 root_1 = self.adaptor.becomeRoot(CommonTree(CommonToken(5)), root_1)
723 self.adaptor.addChild(root_1, CommonTree(CommonToken(6)))
733 t = CommonTree(CommonToken(101))
734 newChild = CommonTree(CommonToken(5))
741 t = CommonTree(CommonToken(99, text="a"))
742 c0 = CommonTree(CommonToken(99, text="b"))
745 newChild = CommonTree(CommonToken(99, text="c"))
753 t = CommonTree(CommonToken(99, text="a"))
754 t.addChild(CommonTree(CommonToken(99, text="b")))
755 t.addChild(CommonTree(CommonToken(99, text="c"))) # index 1
756 t.addChild(CommonTree(CommonToken(99, text="d")))
758 newChild = CommonTree(CommonToken(99, text="x"))
766 t = CommonTree(CommonToken(99, text="a"))
767 t.addChild(CommonTree(CommonToken(99, text="b"))) # index 0
768 t.addChild(CommonTree(CommonToken(99, text="c")))
769 t.addChild(CommonTree(CommonToken(99, text="d")))
771 newChild = CommonTree(CommonToken(99, text="x"))
779 t = CommonTree(CommonToken(99, text="a"))
780 t.addChild(CommonTree(CommonToken(99, text="b")))
781 t.addChild(CommonTree(CommonToken(99, text="c")))
782 t.addChild(CommonTree(CommonToken(99, text="d"))) # index 2
784 newChild = CommonTree(CommonToken(99, text="x"))
792 t = CommonTree(CommonToken(99, text="a"))
793 t.addChild(CommonTree(CommonToken(99, text="b")))
794 t.addChild(CommonTree(CommonToken(99, text="c")))
795 t.addChild(CommonTree(CommonToken(99, text="d")))
798 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
799 newChildren.addChild(CommonTree(CommonToken(99, text="y")))
808 t = CommonTree(CommonToken(99, text="a"))
809 t.addChild(CommonTree(CommonToken(99, text="b")))
810 t.addChild(CommonTree(CommonToken(99, text="c")))
811 t.addChild(CommonTree(CommonToken(99, text="d")))
814 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
815 newChildren.addChild(CommonTree(CommonToken(99, text="y")))
824 t = CommonTree(CommonToken(99, text="a"))
825 t.addChild(CommonTree(CommonToken(99, text="b")))
826 t.addChild(CommonTree(CommonToken(99, text="c")))
827 t.addChild(CommonTree(CommonToken(99, text="d")))
830 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
831 newChildren.addChild(CommonTree(CommonToken(99, text="y")))
840 t = CommonTree(CommonToken(99, text="a"))
841 t.addChild(CommonTree(CommonToken(99, text="b")))
842 t.addChild(CommonTree(CommonToken(99, text="c")))
843 t.addChild(CommonTree(CommonToken(99, text="d")))
845 newChild = CommonTree(CommonToken(99, text="x"))
854 t = CommonTree(CommonToken(99, text="a"))
855 t.addChild(CommonTree(CommonToken(99, text="b")))
856 t.addChild(CommonTree(CommonToken(99, text="c")))
857 t.addChild(CommonTree(CommonToken(99, text="d")))
859 newChild = CommonTree(CommonToken(99, text="x"))
868 t = CommonTree(CommonToken(99, text="a"))
869 t.addChild(CommonTree(CommonToken(99, text="b")))
870 t.addChild(CommonTree(CommonToken(99, text="c")))
871 t.addChild(CommonTree(CommonToken(99, text="d")))
873 newChild = CommonTree(CommonToken(99, text="x"))
882 t = CommonTree(CommonToken(99, text="a"))
883 t.addChild(CommonTree(CommonToken(99, text="b")))
884 t.addChild(CommonTree(CommonToken(99, text="c")))
885 t.addChild(CommonTree(CommonToken(99, text="d")))
888 newChildren.addChild(CommonTree(CommonToken(99, text="x")))
889 newChildren.addChild(CommonTree(CommonToken(99, text="y")))