Home
last modified time | relevance | path

Searched refs:tokenNames (Results 1 – 25 of 98) sorted by relevance

1234

/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DMismatchedTokenException.cs68 public MismatchedTokenException(int expecting, IIntStream input, IList<string> tokenNames) in MismatchedTokenException() argument
73 if (tokenNames != null) in MismatchedTokenException()
74 this._tokenNames = new List<string>(tokenNames).AsReadOnly(); in MismatchedTokenException()
77 …MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames) in MismatchedTokenException() argument
82 if (tokenNames != null) in MismatchedTokenException()
83 this._tokenNames = new List<string>(tokenNames).AsReadOnly(); in MismatchedTokenException()
86 …ception(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception inner… in MismatchedTokenException() argument
91 if (tokenNames != null) in MismatchedTokenException()
92 this._tokenNames = new List<string>(tokenNames).AsReadOnly(); in MismatchedTokenException()
DMissingTokenException.cs69 …c MissingTokenException(int expecting, IIntStream input, object inserted, IList<string> tokenNames) in MissingTokenException() argument
70 : base(expecting, input, tokenNames) in MissingTokenException()
75 …ception(string message, int expecting, IIntStream input, object inserted, IList<string> tokenNames) in MissingTokenException() argument
76 : base(message, expecting, input, tokenNames) in MissingTokenException()
81 …ssage, int expecting, IIntStream input, object inserted, IList<string> tokenNames, Exception inner… in MissingTokenException() argument
82 : base(message, expecting, input, tokenNames, innerException) in MissingTokenException()
DUnwantedTokenException.cs63 public UnwantedTokenException(int expecting, IIntStream input, IList<string> tokenNames) in UnwantedTokenException() argument
64 : base(expecting, input, tokenNames) in UnwantedTokenException()
68 …c UnwantedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames) in UnwantedTokenException() argument
69 : base(message, expecting, input, tokenNames) in UnwantedTokenException()
73 …ception(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception inner… in UnwantedTokenException() argument
74 : base(message, expecting, input, tokenNames, innerException) in UnwantedTokenException()
DBaseRecognizer.cs244 public virtual void DisplayRecognitionError( string[] tokenNames, in DisplayRecognitionError() argument
248 string msg = GetErrorMessage( e, tokenNames ); in DisplayRecognitionError()
275 public virtual string GetErrorMessage( RecognitionException e, string[] tokenNames ) in GetErrorMessage() argument
288 tokenName = tokenNames[ute.Expecting]; in GetErrorMessage()
303 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage()
317 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage()
332 tokenName = tokenNames[mtne.Expecting]; in GetErrorMessage()
DBitSet.cs350 public string ToString( string[] tokenNames ) in ToString() argument
365 if ( tokenNames != null ) in ToString()
367 buf.Append( tokenNames[i] ); in ToString()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DMismatchedTokenException.cs65 public MismatchedTokenException(int expecting, IIntStream input, IList<string> tokenNames) in MismatchedTokenException() argument
69 if (tokenNames != null) in MismatchedTokenException()
70 this._tokenNames = new List<string>(tokenNames).AsReadOnly(); in MismatchedTokenException()
72 …MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames) in MismatchedTokenException() argument
76 if (tokenNames != null) { in MismatchedTokenException()
77 this._tokenNames = new ReadOnlyCollection<string>(new List<string>(tokenNames)); in MismatchedTokenException()
81 …ception(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception inner… in MismatchedTokenException() argument
85 if (tokenNames != null) in MismatchedTokenException()
86 this._tokenNames = new ReadOnlyCollection<string>(new List<string>(tokenNames)); in MismatchedTokenException()
DMissingTokenException.cs63 …c MissingTokenException(int expecting, IIntStream input, object inserted, IList<string> tokenNames) in MissingTokenException() argument
64 : base(expecting, input, tokenNames) { in MissingTokenException()
68 …ception(string message, int expecting, IIntStream input, object inserted, IList<string> tokenNames) in MissingTokenException() argument
69 : base(message, expecting, input, tokenNames) { in MissingTokenException()
73 …ssage, int expecting, IIntStream input, object inserted, IList<string> tokenNames, Exception inner… in MissingTokenException() argument
74 : base(message, expecting, input, tokenNames, innerException) { in MissingTokenException()
DUnwantedTokenException.cs57 public UnwantedTokenException(int expecting, IIntStream input, IList<string> tokenNames) in UnwantedTokenException() argument
58 : base(expecting, input, tokenNames) { in UnwantedTokenException()
61 …c UnwantedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames) in UnwantedTokenException() argument
62 : base(message, expecting, input, tokenNames) { in UnwantedTokenException()
65 …ception(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception inner… in UnwantedTokenException() argument
66 : base(message, expecting, input, tokenNames, innerException) { in UnwantedTokenException()
DBaseRecognizer.cs220 public virtual void DisplayRecognitionError(string[] tokenNames, in DisplayRecognitionError() argument
223 string msg = GetErrorMessage(e, tokenNames); in DisplayRecognitionError()
250 public virtual string GetErrorMessage(RecognitionException e, string[] tokenNames) { in GetErrorMessage() argument
258 tokenName = tokenNames[ute.Expecting]; in GetErrorMessage()
268 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage()
277 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage()
287 tokenName = tokenNames[mtne.Expecting]; in GetErrorMessage()
DBitSet.cs296 public string ToString(string[] tokenNames) { in ToString() argument
307 if (tokenNames != null) { in ToString()
308 buf.Append(tokenNames[i]); in ToString()
/external/antlr/runtime/Python/unittests/
Dtesttree.py909 tokenNames = [ variable in TestTreeContext
917 wiz = TreeWizard(adaptor, self.tokenNames)
929 found = TreeParser._inContext(adaptor, self.tokenNames, node, "VEC")
936 wiz = TreeWizard(adaptor, self.tokenNames)
948 found = TreeParser._inContext(adaptor, self.tokenNames, node, "VEC")
955 wiz = TreeWizard(adaptor, self.tokenNames)
967 found = TreeParser._inContext(adaptor, self.tokenNames, node, "VEC ...")
974 wiz = TreeWizard(adaptor, self.tokenNames)
986 found = TreeParser._inContext(adaptor, self.tokenNames, node, "...VEC")
993 wiz = TreeWizard(adaptor, self.tokenNames)
[all …]
/external/antlr/runtime/Python3/unittests/
Dtesttree.py900 tokenNames = [ variable in TestTreeContext
908 wiz = TreeWizard(adaptor, self.tokenNames)
920 found = TreeParser._inContext(adaptor, self.tokenNames, node, "VEC")
927 wiz = TreeWizard(adaptor, self.tokenNames)
939 found = TreeParser._inContext(adaptor, self.tokenNames, node, "VEC")
946 wiz = TreeWizard(adaptor, self.tokenNames)
958 found = TreeParser._inContext(adaptor, self.tokenNames, node, "VEC ...")
965 wiz = TreeWizard(adaptor, self.tokenNames)
977 found = TreeParser._inContext(adaptor, self.tokenNames, node, "...VEC")
984 wiz = TreeWizard(adaptor, self.tokenNames)
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DTreeParser.java158 public String getErrorMessage(RecognitionException e, String[] tokenNames) { in getErrorMessage() argument
167 return super.getErrorMessage(e, tokenNames); in getErrorMessage()
188 String[] tokenNames, in inContext() argument
210 Object ancestor = getAncestor(adaptor, tokenNames, t, goal); in inContext()
215 String name = tokenNames[adaptor.getType(t)]; in inContext()
230 …protected static Object getAncestor(TreeAdaptor adaptor, String[] tokenNames, Object t, String goa… in getAncestor() argument
232 String name = tokenNames[adaptor.getType(t)]; in getAncestor()
DTreeWizard.java134 public TreeWizard(TreeAdaptor adaptor, String[] tokenNames) { in TreeWizard() argument
136 this.tokenNameToTypeMap = computeTokenTypes(tokenNames); in TreeWizard()
139 public TreeWizard(String[] tokenNames) { in TreeWizard() argument
140 this(new CommonTreeAdaptor(), tokenNames); in TreeWizard()
146 public Map<String, Integer> computeTokenTypes(String[] tokenNames) { in computeTokenTypes() argument
148 if ( tokenNames==null ) { in computeTokenTypes()
151 for (int ttype = Token.MIN_TOKEN_TYPE; ttype < tokenNames.length; ttype++) { in computeTokenTypes()
152 String name = tokenNames[ttype]; in computeTokenTypes()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreeWizard.cs185 public TreeWizard( ITreeAdaptor adaptor, string[] tokenNames ) in TreeWizard() argument
188 this.tokenNameToTypeMap = ComputeTokenTypes( tokenNames ); in TreeWizard()
191 public TreeWizard( string[] tokenNames ) in TreeWizard() argument
192 : this( new CommonTreeAdaptor(), tokenNames ) in TreeWizard()
201 public virtual IDictionary<string, int> ComputeTokenTypes( string[] tokenNames ) in ComputeTokenTypes() argument
204 if ( tokenNames == null ) in ComputeTokenTypes()
208 for ( int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++ ) in ComputeTokenTypes()
210 string name = tokenNames[ttype]; in ComputeTokenTypes()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreeWizard.cs165 public TreeWizard(ITreeAdaptor adaptor, string[] tokenNames) { in TreeWizard() argument
167 this.tokenNameToTypeMap = ComputeTokenTypes(tokenNames); in TreeWizard()
170 public TreeWizard(string[] tokenNames) : in TreeWizard() argument
171 this(null, tokenNames) { in TreeWizard()
179 public virtual IDictionary<string, int> ComputeTokenTypes(string[] tokenNames) { in ComputeTokenTypes() argument
181 if (tokenNames == null) { in ComputeTokenTypes()
184 for (int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++) { in ComputeTokenTypes()
185 string name = tokenNames[ttype]; in ComputeTokenTypes()
/external/antlr/runtime/Python/antlr3/
Drecognizers.py146 tokenNames = None variable in BaseRecognizer
287 self.displayRecognitionError(self.tokenNames, e)
290 def displayRecognitionError(self, tokenNames, e): argument
292 msg = self.getErrorMessage(e, tokenNames)
296 def getErrorMessage(self, e, tokenNames): argument
327 tokenName = self.tokenNames[e.expecting]
340 tokenName = self.tokenNames[e.expecting]
351 tokenName = self.tokenNames[e.expecting]
363 tokenName = self.tokenNames[e.expecting]
1280 self.displayRecognitionError(self.tokenNames, e)
[all …]
Dtreewizard.py44 def computeTokenTypes(tokenNames): argument
50 if tokenNames is None:
53 return dict((name, type) for type, name in enumerate(tokenNames))
322 def __init__(self, adaptor=None, tokenNames=None, typeMap=None): argument
330 self.tokenNameToTypeMap = computeTokenTypes(tokenNames)
333 if tokenNames is not None:
/external/antlr/tool/src/test/java/org/antlr/test/
DTestSymbolDefinitions.java53 String tokenNames = "A, B, C"; in testParserSimpleTokens() local
54 checkSymbols(g, rules, tokenNames); in testParserSimpleTokens()
67 String tokenNames = "A, B, C, D"; in testParserTokensSection() local
68 checkSymbols(g, rules, tokenNames); in testParserTokensSection()
81 String tokenNames = "A, C, D"; in testLexerTokensSection() local
82 checkSymbols(g, rules, tokenNames); in testLexerTokensSection()
95 String tokenNames = "A, B, C, D, 'c'"; in testTokensSectionWithAssignmentSection() local
96 checkSymbols(g, rules, tokenNames); in testTokensSectionWithAssignmentSection()
108 String tokenNames = "C, FOO, ID, 'begin', 'end', ';'"; in testCombinedGrammarLiterals() local
109 checkSymbols(g, rules, tokenNames); in testCombinedGrammarLiterals()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DBaseRecognizer.java189 public void displayRecognitionError(String[] tokenNames, in displayRecognitionError() argument
193 String msg = getErrorMessage(e, tokenNames); in displayRecognitionError()
219 public String getErrorMessage(RecognitionException e, String[] tokenNames) { in getErrorMessage() argument
228 tokenName = tokenNames[ute.expecting]; in getErrorMessage()
240 tokenName = tokenNames[mte.expecting]; in getErrorMessage()
251 tokenName = tokenNames[mte.expecting]; in getErrorMessage()
263 tokenName = tokenNames[mtne.expecting]; in getErrorMessage()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DBaseRecognizer.js236 displayRecognitionError: function(tokenNames, e) { argument
238 msg = this.getErrorMessage(e, tokenNames);
292 getErrorMessage: function(e, tokenNames) { argument
302 tokenName = tokenNames[ute.expecting];
313 tokenName = tokenNames[mte.expecting];
324 tokenName = tokenNames[mte.expecting];
/external/antlr/runtime/Python3/antlr3/
Dtreewizard.py44 def computeTokenTypes(tokenNames): argument
50 if tokenNames:
51 return dict((name, type) for type, name in enumerate(tokenNames))
322 def __init__(self, adaptor=None, tokenNames=None, typeMap=None): argument
330 self.tokenNameToTypeMap = computeTokenTypes(tokenNames)
333 if tokenNames:
/external/smali/smali/src/test/java/org/jf/smali/
DLexerTest.java54 for (int i=0; i<smaliParser.tokenNames.length; i++) {
55 tokenTypesByName.put(smaliParser.tokenNames[i], i); in tokenTypesByName.put()
216 return smaliParser.tokenNames[tokenType]; in getTokenName()
/external/antlr/runtime/C/src/
Dantlr3baserecognizer.c62 …d displayRecognitionError (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 * tokenNames);
122 recognizer->state->tokenNames = NULL; in antlr3BaseRecognizerNew()
747 recognizer->displayRecognitionError(recognizer, recognizer->state->tokenNames); in reportError()
1008 displayRecognitionError (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 * tokenNames) in displayRecognitionError() argument
1134 if (tokenNames == NULL) in displayRecognitionError()
1146 ANTLR3_FPRINTF(stderr, " : Extraneous input - expected %s ...\n", tokenNames[ex->expecting]); in displayRecognitionError()
1158 if (tokenNames == NULL) in displayRecognitionError()
1170 ANTLR3_FPRINTF(stderr, " : Missing %s \n", tokenNames[ex->expecting]); in displayRecognitionError()
1197 if (tokenNames == NULL) in displayRecognitionError()
1209 ANTLR3_FPRINTF(stderr, " : expected %s ...\n", tokenNames[ex->expecting]); in displayRecognitionError()
[all …]
/external/antlr/runtime/Cpp/include/
Dantlr3exception.inl228 void ANTLR_Exception<ImplTraits, Ex, StreamType>::displayRecognitionError( ANTLR_UINT8** tokenNames argument
249 if (tokenNames == NULL)
262 << tokenNames[ BaseType::m_expecting] << " ...\n";
272 if (tokenNames == NULL)
285 str_stream << " : Missing " << tokenNames[BaseType::m_expecting] <<" \n";
330 if (tokenNames[bit])
333 << tokenNames[bit];

1234