Home
last modified time | relevance | path

Searched refs:ruleNames (Results 1 – 25 of 221) sorted by relevance

123456789

/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/tool/src/org/antlr/v4/gui/
H A DTrees.java25 TreeViewer viewer = new TreeViewer(ruleNames, t); in inspect()
32 return inspect(t, ruleNames); in inspect()
40 save(t, ruleNames, fileName); in save()
49 save(t, ruleNames, fileName, fontName, fontSize); in save()
56 writePS(t, ruleNames, fileName); in save()
65 writePS(t, ruleNames, fileName, fontName, fontSize); in save()
68 public static String getPS(Tree t, List<String> ruleNames, in getPS() argument
77 return getPS(t, ruleNames, "Helvetica", 11); in getPS()
80 public static void writePS(Tree t, List<String> ruleNames, in writePS() argument
85 String ps = getPS(t, ruleNames, fontName, fontSize); in writePS()
[all …]
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Swift/Sources/Antlr4/
H A DRuleContext.swift178 public func toStringTree(_ ruleNames: [String]?) -> String { in toStringTree()
179 return Trees.toStringTree(self, ruleNames) in toStringTree()
198 public final func toString(_ ruleNames: [String]) -> String { in toString()
199 return toString(ruleNames, nil) in toString()
204 let ruleNames = recog?.getRuleNames() in toString<T>() variable
205 return toString(ruleNames, stop) in toString<T>()
208 open func toString(_ ruleNames: [String]?, _ stop: RuleContext?) -> String { in toString()
213 if let ruleNames = ruleNames { in toString() variable
215 let ruleIndexInRange = (ruleIndex >= 0 && ruleIndex < ruleNames.count) in toString()
216 let ruleName = (ruleIndexInRange ? ruleNames[ruleIndex] : String(ruleIndex)) in toString()
[all …]
H A DLexerInterpreter.swift12 internal let ruleNames: [String] variable
21 …public init(_ grammarFileName: String, _ vocabulary: Vocabulary, _ ruleNames: Array<String>, _ cha…
25 self.ruleNames = ruleNames
59 return ruleNames in getRuleNames()
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/CSharp/runtime/CSharp/Antlr4.Runtime/
H A DRuleContext.cs257 public virtual string ToStringTree(IList<string> ruleNames) in ToStringTree() argument
259 return Trees.ToStringTree(this, ruleNames); in ToStringTree()
277 public string ToString(IList<string> ruleNames) in ToString() argument
279 return ToString(ruleNames, null); in ToString()
285 string[] ruleNames = recog != null ? recog.RuleNames : null; in ToString()
286 IList<string> ruleNamesList = ruleNames != null ? Arrays.AsList(ruleNames) : null; in ToString()
290 public virtual string ToString(IList<string> ruleNames, Antlr4.Runtime.RuleContext stop) in ToString() argument
297 if (ruleNames == null) in ToString()
307 …string ruleName = ruleIndex >= 0 && ruleIndex < ruleNames.Count ? ruleNames[ruleIndex] : ruleIndex… in ToString()
310 if (p.Parent != null && (ruleNames != null || !p.Parent.IsEmpty)) in ToString()
H A DLexerInterpreter.cs22 private readonly string[] ruleNames; field in Antlr4.Runtime.LexerInterpreter
35 …ter(string grammarFileName, IVocabulary vocabulary, IEnumerable<string> ruleNames, IEnumerable<str… in LexerInterpreter() argument
36 : this(grammarFileName, vocabulary, ruleNames, new string[0], modeNames, atn, input) in LexerInterpreter()
40 …ter(string grammarFileName, IVocabulary vocabulary, IEnumerable<string> ruleNames, IEnumerable<str… in LexerInterpreter() argument
49 this.ruleNames = ruleNames.ToArray(); in LexerInterpreter()
81 return ruleNames;
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Java/src/org/antlr/v4/runtime/
H A DRuleContext.java197 public String toStringTree(List<String> ruleNames) { in toStringTree() argument
198 return Trees.toStringTree(this, ruleNames); in toStringTree()
215 public final String toString(List<String> ruleNames) { in toString() argument
216 return toString(ruleNames, null); in toString()
221 String[] ruleNames = recog != null ? recog.getRuleNames() : null; in toString() local
222 List<String> ruleNamesList = ruleNames != null ? Arrays.asList(ruleNames) : null; in toString()
226 public String toString(List<String> ruleNames, RuleContext stop) { in toString() argument
231 if (ruleNames == null) { in toString()
238 …String ruleName = ruleIndex >= 0 && ruleIndex < ruleNames.size() ? ruleNames.get(ruleIndex) : Inte… in toString()
242 if (p.parent != null && (ruleNames != null || !p.parent.isEmpty())) { in toString()
H A DLexerInterpreter.java24 protected final String[] ruleNames; field in LexerInterpreter
36 …ring grammarFileName, Collection<String> tokenNames, Collection<String> ruleNames, Collection<Stri… in LexerInterpreter() argument
37 …Impl.fromTokenNames(tokenNames.toArray(new String[tokenNames.size()])), ruleNames, new ArrayList<S… in LexerInterpreter()
41 …reter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<Stri… in LexerInterpreter() argument
42 this(grammarFileName, vocabulary, ruleNames, new ArrayList<String>(), modeNames, atn, input); in LexerInterpreter()
45 …reter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<Stri… in LexerInterpreter() argument
59 this.ruleNames = ruleNames.toArray(new String[ruleNames.size()]); in LexerInterpreter()
89 return ruleNames; in getRuleNames()
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/CSharp/runtime/CSharp/Antlr4.Runtime/Tree/
H A DTrees.cs39 string[] ruleNames = recog != null ? recog.RuleNames : null; in ToStringTree()
40 IList<string> ruleNamesList = ruleNames != null ? Arrays.AsList(ruleNames) : null; in ToStringTree()
52 public static string ToStringTree(ITree t, IList<string> ruleNames) in ToStringTree() argument
54 string s = Utils.EscapeWhitespace(GetNodeText(t, ruleNames), false); in ToStringTree()
61 s = Utils.EscapeWhitespace(GetNodeText(t, ruleNames), false); in ToStringTree()
70 buf.Append(ToStringTree(t.GetChild(i), ruleNames)); in ToStringTree()
78 string[] ruleNames = recog != null ? recog.RuleNames : null; in GetNodeText()
79 IList<string> ruleNamesList = ruleNames != null ? Arrays.AsList(ruleNames) : null; in GetNodeText()
83 public static string GetNodeText(ITree t, IList<string> ruleNames) in GetNodeText() argument
85 if (ruleNames != null) in GetNodeText()
[all …]
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Python2/src/antlr4/tree/
H A DTrees.py22 def toStringTree(cls, t, ruleNames=None, recog=None): argument
24 ruleNames = recog.ruleNames
25 s = escapeWhitespace(cls.getNodeText(t, ruleNames), False)
35 buf.write(cls.toStringTree(t.getChild(i), ruleNames))
40 def getNodeText(cls, t, ruleNames=None, recog=None): argument
42 ruleNames = recog.ruleNames
43 if ruleNames is not None:
46 return ruleNames[t.getRuleIndex()]+":"+str(t.getAltNumber())
47 return ruleNames[t.getRuleIndex()]
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Python3/src/antlr4/tree/
H A DTrees.py23 def toStringTree(cls, t:Tree, ruleNames:list=None, recog:Parser=None):
25 ruleNames = recog.ruleNames
26 s = escapeWhitespace(cls.getNodeText(t, ruleNames), False)
36 buf.write(cls.toStringTree(t.getChild(i), ruleNames))
41 def getNodeText(cls, t:Tree, ruleNames:list=None, recog:Parser=None):
43 ruleNames = recog.ruleNames
44 if ruleNames is not None:
47 return ruleNames[t.getRuleIndex()]+":"+str(t.getAltNumber())
48 return ruleNames[t.getRuleIndex()]
/dports/devel/py-antlr4-python3-runtime/antlr4-python3-runtime-4.9/src/antlr4/tree/
H A DTrees.py23 def toStringTree(cls, t:Tree, ruleNames:list=None, recog:Parser=None):
25 ruleNames = recog.ruleNames
26 s = escapeWhitespace(cls.getNodeText(t, ruleNames), False)
36 buf.write(cls.toStringTree(t.getChild(i), ruleNames))
41 def getNodeText(cls, t:Tree, ruleNames:list=None, recog:Parser=None):
43 ruleNames = recog.ruleNames
44 if ruleNames is not None:
47 return ruleNames[t.getRuleIndex()]+":"+str(t.getAltNumber())
48 return ruleNames[t.getRuleIndex()]
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Go/antlr/
H A Dtrees.go14 func TreesStringTree(tree Tree, ruleNames []string, recog Recognizer) string {
17 ruleNames = recog.GetRuleNames()
20 s := TreesGetNodeText(tree, ruleNames, nil)
29 s = TreesStringTree(tree.GetChild(0), ruleNames, nil)
33 s = TreesStringTree(tree.GetChild(i), ruleNames, nil)
40 func TreesGetNodeText(t Tree, ruleNames []string, recog Parser) string {
42 ruleNames = recog.GetRuleNames()
45 if ruleNames != nil {
52 return fmt.Sprintf("%s:%d", ruleNames[t3.GetRuleIndex()], altNumber)
54 return ruleNames[t3.GetRuleIndex()]
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Python3/src/antlr4/
H A DRuleContext.py176 def toStringTree(self, ruleNames:list=None, recog:Parser=None):
177 return Trees.toStringTree(self, ruleNames=ruleNames, recog=recog)
208 def toString(self, ruleNames:list, stop:RuleContext)->str:
213 if ruleNames is None:
218 ruleName = ruleNames[ri] if ri >= 0 and ri < len(ruleNames) else str(ri)
221 if p.parentCtx is not None and (ruleNames is not None or not p.parentCtx.isEmpty()):
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Python2/src/antlr4/
H A DRuleContext.py173 def toStringTree(self, ruleNames=None, recog=None): argument
174 return Trees.toStringTree(self, ruleNames=ruleNames, recog=recog)
205 def toString(self, ruleNames, stop): argument
210 if ruleNames is None:
215 ruleName = ruleNames[ri] if ri >= 0 and ri < len(ruleNames) else unicode(ri)
218 if p.parentCtx is not None and (ruleNames is not None or not p.parentCtx.isEmpty()):
/dports/devel/py-antlr4-python3-runtime/antlr4-python3-runtime-4.9/src/antlr4/
H A DRuleContext.py176 def toStringTree(self, ruleNames:list=None, recog:Parser=None):
177 return Trees.toStringTree(self, ruleNames=ruleNames, recog=recog)
208 def toString(self, ruleNames:list, stop:RuleContext)->str:
213 if ruleNames is None:
218 ruleName = ruleNames[ri] if ri >= 0 and ri < len(ruleNames) else str(ri)
221 if p.parentCtx is not None and (ruleNames is not None or not p.parentCtx.isEmpty()):
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Cpp/runtime/src/
H A DRuleContext.cpp82 std::string RuleContext::toStringTree(std::vector<std::string> &ruleNames) { in toStringTree() argument
83 return tree::Trees::toStringTree(this, ruleNames); in toStringTree()
91 std::string RuleContext::toString(const std::vector<std::string> &ruleNames) { in toString() argument
92 return toString(ruleNames, nullptr); in toString()
96 std::string RuleContext::toString(const std::vector<std::string> &ruleNames, RuleContext *stop) { in toString() argument
102 if (ruleNames.empty()) { in toString()
109 …std::string ruleName = (ruleIndex < ruleNames.size()) ? ruleNames[ruleIndex] : std::to_string(rule… in toString()
116 if (!ruleNames.empty() || !currentParent->isEmpty()) { in toString()
/dports/www/node10/node-v10.24.1/deps/v8/third_party/antlr4/runtime/Cpp/runtime/src/
H A DRuleContext.cpp75 std::string RuleContext::toStringTree(std::vector<std::string>& ruleNames) { in toStringTree() argument
76 return tree::Trees::toStringTree(this, ruleNames); in toStringTree()
81 std::string RuleContext::toString(const std::vector<std::string>& ruleNames) { in toString() argument
82 return toString(ruleNames, nullptr); in toString()
85 std::string RuleContext::toString(const std::vector<std::string>& ruleNames, in toString() argument
92 if (ruleNames.empty()) { in toString()
99 std::string ruleName = (ruleIndex < ruleNames.size()) in toString()
100 ? ruleNames[ruleIndex] in toString()
108 if (!ruleNames.empty() || !currentParent->isEmpty()) { in toString()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/lib/antlr4-cpp-runtime/runtime/src/
H A DRuleContext.cpp82 std::string RuleContext::toStringTree(std::vector<std::string> &ruleNames, bool pretty) { in toStringTree() argument
83 return tree::Trees::toStringTree(this, ruleNames, pretty); in toStringTree()
91 std::string RuleContext::toString(const std::vector<std::string> &ruleNames) { in toString() argument
92 return toString(ruleNames, nullptr); in toString()
96 std::string RuleContext::toString(const std::vector<std::string> &ruleNames, RuleContext *stop) { in toString() argument
102 if (ruleNames.empty()) { in toString()
109 …std::string ruleName = (ruleIndex < ruleNames.size()) ? ruleNames[ruleIndex] : std::to_string(rule… in toString()
116 if (!ruleNames.empty() || !currentParent->isEmpty()) { in toString()
/dports/devel/libantlr4/libantlr4-4.9.3/runtime/src/
H A DRuleContext.cpp82 std::string RuleContext::toStringTree(std::vector<std::string> &ruleNames, bool pretty) { in toStringTree() argument
83 return tree::Trees::toStringTree(this, ruleNames, pretty); in toStringTree()
91 std::string RuleContext::toString(const std::vector<std::string> &ruleNames) { in toString() argument
92 return toString(ruleNames, nullptr); in toString()
96 std::string RuleContext::toString(const std::vector<std::string> &ruleNames, RuleContext *stop) { in toString() argument
102 if (ruleNames.empty()) { in toString()
109 …std::string ruleName = (ruleIndex < ruleNames.size()) ? ruleNames[ruleIndex] : std::to_string(rule… in toString()
116 if (!ruleNames.empty() || !currentParent->isEmpty()) { in toString()
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Swift/Sources/Antlr4/tree/
H A DTrees.swift57 let ruleNames: [String]? = recog != nil ? recog!.getRuleNames() : nil in toStringTree() variable
58 let ruleNamesList: Array<String>? = ruleNames ?? nil in toStringTree()
66 public static func toStringTree(_ t: Tree, _ ruleNames: Array<String>?) -> String { in toStringTree()
67 let s = Utils.escapeWhitespace(getNodeText(t, ruleNames), false) in toStringTree()
77 buf += toStringTree(t.getChild(i)!, ruleNames) in toStringTree()
84 let ruleNames: [String]? = recog != nil ? recog!.getRuleNames() : nil in getNodeText() variable
85 let ruleNamesList: Array<String>? = ruleNames ?? nil in getNodeText()
89 public static func getNodeText(_ t: Tree, _ ruleNames: Array<String>?) -> String { in getNodeText()
90 if ruleNames != nil { in getNodeText()
93 let ruleName: String = ruleNames![ruleIndex] in getNodeText()
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/Java/src/org/antlr/v4/runtime/tree/
H A DTrees.java40 String[] ruleNames = recog != null ? recog.getRuleNames() : null; in toStringTree() local
41 List<String> ruleNamesList = ruleNames != null ? Arrays.asList(ruleNames) : null; in toStringTree()
48 public static String toStringTree(final Tree t, final List<String> ruleNames) { in toStringTree() argument
49 String s = Utils.escapeWhitespace(getNodeText(t, ruleNames), false); in toStringTree()
53 s = Utils.escapeWhitespace(getNodeText(t, ruleNames), false); in toStringTree()
58 buf.append(toStringTree(t.getChild(i), ruleNames)); in toStringTree() local
65 String[] ruleNames = recog != null ? recog.getRuleNames() : null; in getNodeText() local
66 List<String> ruleNamesList = ruleNames != null ? Arrays.asList(ruleNames) : null; in getNodeText()
70 public static String getNodeText(Tree t, List<String> ruleNames) { in getNodeText() argument
71 if ( ruleNames!=null ) { in getNodeText()
[all …]
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/tool-testsuite/test/org/antlr/v4/test/tool/
H A DInterpreterTreeTextProvider.java18 public List<String> ruleNames; field in InterpreterTreeTextProvider
19 public InterpreterTreeTextProvider(String[] ruleNames) {this.ruleNames = Arrays.asList(ruleNames);} in InterpreterTreeTextProvider() argument
24 String nodeText = Trees.getNodeText(node, ruleNames); in getText()
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/CSharp/runtime/CSharp/Antlr4.Runtime/Dfa/
H A DDFASerializer.cs25 internal readonly string[] ruleNames; field in Antlr4.Runtime.Dfa.DFASerializer
40 public DFASerializer(DFA dfa, IVocabulary vocabulary, string[] ruleNames, ATN atn) in DFASerializer() argument
44 this.ruleNames = ruleNames; in DFASerializer()
98 if (ruleNames != null && ruleIndex >= 0 && ruleIndex < ruleNames.Length) in GetContextLabel()
100 return "ctx:" + i.ToString() + "(" + ruleNames[ruleIndex] + ")"; in GetContextLabel()
/dports/x11-wm/plasma5-kwin/kwin-5.23.5/src/
H A Dxkb.cpp158 if (stringIsEmptyOrNull(ruleNames.rules)) { in applyEnvironmentRules()
159 ruleNames.rules = getenv("XKB_DEFAULT_RULES"); in applyEnvironmentRules()
162 if (stringIsEmptyOrNull(ruleNames.model)) { in applyEnvironmentRules()
163 ruleNames.model = getenv("XKB_DEFAULT_MODEL"); in applyEnvironmentRules()
166 if (stringIsEmptyOrNull(ruleNames.layout)) { in applyEnvironmentRules()
167 ruleNames.layout = getenv("XKB_DEFAULT_LAYOUT"); in applyEnvironmentRules()
171 if (ruleNames.options == nullptr) { in applyEnvironmentRules()
189 xkb_rule_names ruleNames = { in loadKeymapFromConfig() local
196 applyEnvironmentRules(ruleNames); in loadKeymapFromConfig()
203 xkb_rule_names ruleNames = {}; in loadDefaultKeymap() local
[all …]
/dports/sysutils/istio/istio-1.6.7/vendor/github.com/antlr/antlr4/runtime/CSharp/runtime/CSharp/Antlr4.Runtime/Misc/
H A DRuleDependencyChecker.cs88 string[] ruleNames = GetRuleNames(recognizerType); in CheckDependencies()
89 int[] ruleVersions = GetRuleVersions(recognizerType, ruleNames); in CheckDependencies()
196 string ruleName = ruleNames[dependency.Item1.Rule]; in CheckDependencyVersion()
204 string mismatchedRuleName = ruleNames[relatedRule]; in CheckDependencyVersion()
220 int[] versions = new int[ruleNames.Length]; in GetRuleVersions()
294 return (string[])ruleNames.GetValue(null); in GetRuleNames()
643 string[] ruleNames = GetRuleNames(recognizerType); in CheckDependencies()
755 string ruleName = ruleNames[dependency.Item1.Rule]; in CheckDependencyVersion()
763 string mismatchedRuleName = ruleNames[relatedRule]; in CheckDependencyVersion()
779 int[] versions = new int[ruleNames.Length]; in GetRuleVersions()
[all …]

123456789