Home
last modified time | relevance | path

Searched refs:edgeST (Results 1 – 6 of 6) sorted by relevance

/external/antlr/antlr-3.4/runtime/Python/antlr3/
Ddottreegen.py80 def toDOT(self, tree, adaptor=None, treeST=_treeST, edgeST=_edgeST): argument
90 self.toDOTDefineEdges(tree, adaptor, treeST, edgeST)
127 def toDOTDefineEdges(self, tree, adaptor, treeST, edgeST): argument
145 edgeST = edgeST.getInstanceOf()
146 edgeST.setAttribute("parent", parentName)
147 edgeST.setAttribute("child", childName)
148 edgeST.setAttribute("parentText", parentText)
149 edgeST.setAttribute("childText", childText)
150 treeST.setAttribute("edges", edgeST)
151 self.toDOTDefineEdges(child, adaptor, treeST, edgeST)
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DACyclicDFACodeGenerator.java113 ST edgeST = templates.getInstanceOf(dfaEdgeName); in walkFixedDFAGeneratingStateMachine() local
115 if ( edgeST.impl.formalArguments.get("labels")!=null ) { in walkFixedDFAGeneratingStateMachine()
123 edgeST.add("labels", labels); in walkFixedDFAGeneratingStateMachine()
126 edgeST.add("labelExpr", in walkFixedDFAGeneratingStateMachine()
140 edgeST.add("predicates", predST); in walkFixedDFAGeneratingStateMachine()
149 edgeST.add("targetState", targetST); in walkFixedDFAGeneratingStateMachine()
150 dfaST.add("edges", edgeST); in walkFixedDFAGeneratingStateMachine()
173 ST edgeST = templates.getInstanceOf(dfaEdgeName); in walkFixedDFAGeneratingStateMachine() local
174 edgeST.add("labelExpr", in walkFixedDFAGeneratingStateMachine()
183 edgeST.add("targetState", targetST); in walkFixedDFAGeneratingStateMachine()
[all …]
DCodeGenerator.java679 ST edgeST; in generateSpecialState() local
682 edgeST = templates.getInstanceOf("eotDFAEdge"); in generateSpecialState()
684 eotST = edgeST; in generateSpecialState()
687 edgeST = templates.getInstanceOf("cyclicDFAEdge"); in generateSpecialState()
690 edgeST.add("labelExpr", exprST); in generateSpecialState()
692 edgeST.add("edgeNumber", Utils.integer(i + 1)); in generateSpecialState()
693 edgeST.add("targetStateNumber", in generateSpecialState()
704 edgeST.add("predicates", predST.render()); in generateSpecialState()
708 stateST.add("edges", edgeST); in generateSpecialState()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DDOTGenerator.java206 ST edgeST = null; in walkRuleNFACreatingDOT() local
212 edgeST = stlib.getInstanceOf("edge"); in walkRuleNFACreatingDOT()
214 edgeST.add("label", "<" + rr.rule.grammar.name + "." + rr.rule.name + ">"); in walkRuleNFACreatingDOT()
217 edgeST.add("label", "<" + rr.rule.name + ">"); in walkRuleNFACreatingDOT()
219 edgeST.add("src", getStateLabel(s)); in walkRuleNFACreatingDOT()
220 edgeST.add("target", getStateLabel(rr.followState)); in walkRuleNFACreatingDOT()
221 edgeST.add("arrowhead", arrowhead); in walkRuleNFACreatingDOT()
222 dot.add("edges", edgeST); in walkRuleNFACreatingDOT()
227 edgeST = stlib.getInstanceOf("action-edge"); in walkRuleNFACreatingDOT()
230 edgeST = stlib.getInstanceOf("epsilon-edge"); in walkRuleNFACreatingDOT()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DDOTTreeGenerator.java174 StringTemplate edgeST = _edgeST.getInstanceOf(); in toDOTDefineEdges() local
175 edgeST.setAttribute("parent", parentName); in toDOTDefineEdges()
176 edgeST.setAttribute("child", childName); in toDOTDefineEdges()
177 edgeST.setAttribute("parentText", fixString(parentText)); in toDOTDefineEdges()
178 edgeST.setAttribute("childText", fixString(childText)); in toDOTDefineEdges()
179 treeST.setAttribute("edges", edgeST); in toDOTDefineEdges()
/external/antlr/antlr-3.4/runtime/Python/unittests/
Dtestdottreegen.py37 edgeST = stringtemplate3.StringTemplate(
42 st = toDOT(tree, self.adaptor, treeST, edgeST)