Home
last modified time | relevance | path

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

/external/antlr/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/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()
124 edgeST.add("labels", targetLabels); in walkFixedDFAGeneratingStateMachine()
127 edgeST.add("labelExpr", in walkFixedDFAGeneratingStateMachine()
141 edgeST.add("predicates", predST); in walkFixedDFAGeneratingStateMachine()
150 edgeST.add("targetState", targetST); in walkFixedDFAGeneratingStateMachine()
151 dfaST.add("edges", edgeST); in walkFixedDFAGeneratingStateMachine()
174 ST edgeST = templates.getInstanceOf(dfaEdgeName); in walkFixedDFAGeneratingStateMachine() local
175 edgeST.add("labelExpr", in walkFixedDFAGeneratingStateMachine()
184 edgeST.add("targetState", targetST); in walkFixedDFAGeneratingStateMachine()
[all …]
DCodeGenerator.java674 ST edgeST; in generateSpecialState() local
677 edgeST = templates.getInstanceOf("eotDFAEdge"); in generateSpecialState()
679 eotST = edgeST; in generateSpecialState()
682 edgeST = templates.getInstanceOf("cyclicDFAEdge"); in generateSpecialState()
685 edgeST.add("labelExpr", exprST); in generateSpecialState()
687 edgeST.add("edgeNumber", Utils.integer(i + 1)); in generateSpecialState()
688 edgeST.add("targetStateNumber", in generateSpecialState()
699 edgeST.add("predicates", predST.render()); in generateSpecialState()
703 stateST.add("edges", edgeST); in generateSpecialState()
/external/antlr/tool/src/main/java/org/antlr/tool/
DDOTGenerator.java206 ST edgeST; 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/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/runtime/Python/unittests/
Dtestdottreegen.py37 edgeST = stringtemplate3.StringTemplate(
42 st = toDOT(tree, self.adaptor, treeST, edgeST)