Home
last modified time | relevance | path

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

1234

/external/antlr/antlr-3.4/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.cs242 public virtual void DisplayRecognitionError( string[] tokenNames, in DisplayRecognitionError() argument
246 string msg = GetErrorMessage( e, tokenNames ); in DisplayRecognitionError()
273 public virtual string GetErrorMessage( RecognitionException e, string[] tokenNames ) in GetErrorMessage() argument
286 tokenName = tokenNames[ute.Expecting]; in GetErrorMessage()
301 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage()
315 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage()
330 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/antlr-3.4/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/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DTreeParser.java150 public String getErrorMessage(RecognitionException e, String[] tokenNames) { in getErrorMessage() argument
159 return super.getErrorMessage(e, tokenNames); in getErrorMessage()
180 String[] tokenNames, in inContext() argument
202 Object ancestor = getAncestor(adaptor, tokenNames, t, goal); in inContext()
207 String name = tokenNames[adaptor.getType(t)]; in inContext()
222 …protected static Object getAncestor(TreeAdaptor adaptor, String[] tokenNames, Object t, String goa… in getAncestor() argument
224 String name = tokenNames[adaptor.getType(t)]; in getAncestor()
DTreeWizard.java131 public TreeWizard(TreeAdaptor adaptor, String[] tokenNames) { in TreeWizard() argument
133 this.tokenNameToTypeMap = computeTokenTypes(tokenNames); in TreeWizard()
136 public TreeWizard(String[] tokenNames) { in TreeWizard() argument
137 this(new CommonTreeAdaptor(), tokenNames); in TreeWizard()
143 public Map computeTokenTypes(String[] tokenNames) { in computeTokenTypes() argument
145 if ( tokenNames==null ) { in computeTokenTypes()
148 for (int ttype = Token.MIN_TOKEN_TYPE; ttype < tokenNames.length; ttype++) { in computeTokenTypes()
149 String name = tokenNames[ttype]; in computeTokenTypes()
/external/antlr/antlr-3.4/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/antlr-3.4/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()
DTreeParser.cs165 public override string GetErrorMessage(RecognitionException e, string[] tokenNames) { in GetErrorMessage() argument
174 return base.GetErrorMessage(e, tokenNames); in GetErrorMessage()
/external/antlr/antlr-3.4/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()
DTreeParser.cs181 public override string GetErrorMessage( RecognitionException e, string[] tokenNames ) in GetErrorMessage() argument
193 return base.GetErrorMessage( e, tokenNames ); in GetErrorMessage()
/external/antlr/antlr-3.4/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/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestSymbolDefinitions.java51 String tokenNames = "A, B, C"; in testParserSimpleTokens() local
52 checkSymbols(g, rules, tokenNames); in testParserSimpleTokens()
65 String tokenNames = "A, B, C, D"; in testParserTokensSection() local
66 checkSymbols(g, rules, tokenNames); in testParserTokensSection()
79 String tokenNames = "A, C, D"; in testLexerTokensSection() local
80 checkSymbols(g, rules, tokenNames); in testLexerTokensSection()
93 String tokenNames = "A, B, C, D, 'c'"; in testTokensSectionWithAssignmentSection() local
94 checkSymbols(g, rules, tokenNames); in testTokensSectionWithAssignmentSection()
106 String tokenNames = "C, FOO, ID, 'begin', 'end', ';'"; in testCombinedGrammarLiterals() local
107 checkSymbols(g, rules, tokenNames); in testCombinedGrammarLiterals()
[all …]
/external/antlr/antlr-3.4/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()
DBitSet.java300 public String toString(String[] tokenNames) { in toString() argument
311 if ( tokenNames!=null ) { in toString()
312 buf.append(tokenNames[i]); in toString()
/external/antlr/antlr-3.4/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/smali/smali/src/test/java/
DLexerTest.java55 for (int i=0; i<smaliParser.tokenNames.length; i++) {
56 tokenTypesByName.put(smaliParser.tokenNames[i], i); in tokenTypesByName.put()
217 return smaliParser.tokenNames[tokenType]; in getTokenName()
/external/antlr/antlr-3.4/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 …]

1234