HomeSort by relevance Sort by last modified time
    Searched refs:tokenNames (Results 1 - 25 of 204) sorted by null

1 2 3 4 5 6 7 8 9

  /external/antlr/antlr-3.4/antlr3-maven-archetype/src/main/resources/archetype-resources/src/main/java/
AbstractTParser.java 53 * @param tokenNames token names as known by ANTLR (which we ignore)
57 public void displayRecognitionError(String[] tokenNames, RecognitionException e) {
61 super.displayRecognitionError(tokenNames, e);
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
MismatchedTokenException.cs 68 public MismatchedTokenException(int expecting, IIntStream input, IList<string> tokenNames)
73 if (tokenNames != null)
74 this._tokenNames = new List<string>(tokenNames).AsReadOnly();
77 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames)
82 if (tokenNames != null)
83 this._tokenNames = new List<string>(tokenNames).AsReadOnly();
86 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception innerException)
91 if (tokenNames != null)
92 this._tokenNames = new List<string>(tokenNames).AsReadOnly();
102 this._tokenNames = new ReadOnlyCollection<string>((string[])info.GetValue("TokenNames", typeof(string[])))
    [all...]
MissingTokenException.cs 69 public MissingTokenException(int expecting, IIntStream input, object inserted, IList<string> tokenNames)
70 : base(expecting, input, tokenNames)
75 public MissingTokenException(string message, int expecting, IIntStream input, object inserted, IList<string> tokenNames)
76 : base(message, expecting, input, tokenNames)
81 public MissingTokenException(string message, int expecting, IIntStream input, object inserted, IList<string> tokenNames, Exception innerException)
82 : base(message, expecting, input, tokenNames, innerException)
UnwantedTokenException.cs 63 public UnwantedTokenException(int expecting, IIntStream input, IList<string> tokenNames)
64 : base(expecting, input, tokenNames)
68 public UnwantedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames)
69 : base(message, expecting, input, tokenNames)
73 public UnwantedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception innerException)
74 : base(message, expecting, input, tokenNames, innerException)
94 //string unexpected = ( tokenNames != null && unexpectedType >= 0 && unexpectedType < tokenNames.Length ) ? tokenNames[unexpectedType] : unexpectedType.ToString();
95 string expected = (TokenNames != null && Expecting >= 0 && Expecting < TokenNames.Count) ? TokenNames[Expecting] : Expecting.ToS (…)
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
MissingTokenException.cs 63 public MissingTokenException(int expecting, IIntStream input, object inserted, IList<string> tokenNames)
64 : base(expecting, input, tokenNames) {
68 public MissingTokenException(string message, int expecting, IIntStream input, object inserted, IList<string> tokenNames)
69 : base(message, expecting, input, tokenNames) {
73 public MissingTokenException(string message, int expecting, IIntStream input, object inserted, IList<string> tokenNames, Exception innerException)
74 : base(message, expecting, input, tokenNames, innerException) {
UnwantedTokenException.cs 57 public UnwantedTokenException(int expecting, IIntStream input, IList<string> tokenNames)
58 : base(expecting, input, tokenNames) {
61 public UnwantedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames)
62 : base(message, expecting, input, tokenNames) {
65 public UnwantedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception innerException)
66 : base(message, expecting, input, tokenNames, innerException) {
81 //string unexpected = ( tokenNames != null && unexpectedType >= 0 && unexpectedType < tokenNames.Length ) ? tokenNames[unexpectedType] : unexpectedType.ToString();
82 string expected = (TokenNames != null && Expecting >= 0 && Expecting < TokenNames.Count) ? TokenNames[Expecting] : Expecting.ToS (…)
    [all...]
MismatchedTokenException.cs 65 public MismatchedTokenException(int expecting, IIntStream input, IList<string> tokenNames)
69 if (tokenNames != null)
70 this._tokenNames = new List<string>(tokenNames).AsReadOnly();
72 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames)
76 if (tokenNames != null) {
77 this._tokenNames = new ReadOnlyCollection<string>(new List<string>(tokenNames));
81 public MismatchedTokenException(string message, int expecting, IIntStream input, IList<string> tokenNames, Exception innerException)
85 if (tokenNames != null)
86 this._tokenNames = new ReadOnlyCollection<string>(new List<string>(tokenNames));
95 this._tokenNames = new ReadOnlyCollection<string>((string[])info.GetValue("TokenNames", typeof(string[])))
    [all...]
  /frameworks/data-binding/compilerCommon/src/main/grammar-gen/android/databinding/parser/
BindingExpressionLexer.java 71 public static final String[] tokenNames;
73 tokenNames = new String[_SYMBOLIC_NAMES.length];
74 for (int i = 0; i < tokenNames.length; i++) {
75 tokenNames[i] = VOCABULARY.getLiteralName(i);
76 if (tokenNames[i] == null) {
77 tokenNames[i] = VOCABULARY.getSymbolicName(i);
80 if (tokenNames[i] == null) {
81 tokenNames[i] = "<INVALID>";
89 return tokenNames;
  /frameworks/data-binding/compilerCommon/src/main/xml-gen/android/databinding/parser/
XMLLexer.java 21 public static final String[] tokenNames = {
43 public String[] getTokenNames() { return tokenNames; }
  /external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
TreeParser.java 150 public String getErrorMessage(RecognitionException e, String[] tokenNames) {
159 return super.getErrorMessage(e, tokenNames);
180 String[] tokenNames,
202 Object ancestor = getAncestor(adaptor, tokenNames, t, goal);
207 String name = tokenNames[adaptor.getType(t)];
222 protected static Object getAncestor(TreeAdaptor adaptor, String[] tokenNames, Object t, String goal) {
224 String name = tokenNames[adaptor.getType(t)];
TreeWizard.java 131 public TreeWizard(TreeAdaptor adaptor, String[] tokenNames) {
133 this.tokenNameToTypeMap = computeTokenTypes(tokenNames);
136 public TreeWizard(String[] tokenNames) {
137 this(new CommonTreeAdaptor(), tokenNames);
141 * tokenNames (which maps int token types to names).
143 public Map computeTokenTypes(String[] tokenNames) {
145 if ( tokenNames==null ) {
148 for (int ttype = Token.MIN_TOKEN_TYPE; ttype < tokenNames.length; ttype++) {
149 String name = tokenNames[ttype];
  /external/antlr/antlr-3.4/runtime/C/include/
antlr3recognizersharedstate.h 128 pANTLR3_UINT8 * tokenNames;
  /external/antlr/antlr-3.4/runtime/Python/unittests/
testtree.py 909 tokenNames = [
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"
    [all...]
  /external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
TreeParser.as 75 "<missing "+tokenNames[expectedTokenType]+">";
129 public override function getErrorMessage(e:RecognitionException, tokenNames:Array):String {
138 return super.getErrorMessage(e, tokenNames);
  /external/smali/smali/src/test/java/
LexerTest.java 55 for (int i=0; i<smaliParser.tokenNames.length; i++) {
56 tokenTypesByName.put(smaliParser.tokenNames[i], i);
217 return smaliParser.tokenNames[tokenType];
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
TreeWizard.cs 165 public TreeWizard(ITreeAdaptor adaptor, string[] tokenNames) {
167 this.tokenNameToTypeMap = ComputeTokenTypes(tokenNames);
170 public TreeWizard(string[] tokenNames) :
171 this(null, tokenNames) {
176 * tokenNames (which maps int token types to names).
179 public virtual IDictionary<string, int> ComputeTokenTypes(string[] tokenNames) {
181 if (tokenNames == null) {
184 for (int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++) {
185 string name = tokenNames[ttype];
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
TreeWizard.cs 185 public TreeWizard( ITreeAdaptor adaptor, string[] tokenNames )
188 this.tokenNameToTypeMap = ComputeTokenTypes( tokenNames );
191 public TreeWizard( string[] tokenNames )
192 : this( new CommonTreeAdaptor(), tokenNames )
198 * tokenNames (which maps int token types to names).
201 public virtual IDictionary<string, int> ComputeTokenTypes( string[] tokenNames )
204 if ( tokenNames == null )
208 for ( int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++ )
210 string name = tokenNames[ttype];
  /external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
ANTLRTreeParser.h 82 - (NSString *)getErrorMessage:(ANTLRRecognitionException *)e TokenNames:(NSArray *) tokenNames;
  /external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
ANTLRTreeParser.h 82 - (NSString *)getErrorMessage:(ANTLRRecognitionException *)e TokenNames:(NSArray *) tokenNames;
  /external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
ANTLRTreeParser.h 82 - (NSString *)getErrorMessage:(ANTLRRecognitionException *)e TokenNames:(NSArray *) tokenNames;
  /external/antlr/antlr-3.4/runtime/ObjC/Framework/
ANTLRTreeParser.h 82 - (NSString *)getErrorMessage:(ANTLRRecognitionException *)e TokenNames:(AMutableArray *) tokenNames;
  /external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
BaseRecognizer.java 189 public void displayRecognitionError(String[] tokenNames,
193 String msg = getErrorMessage(e, tokenNames);
219 public String getErrorMessage(RecognitionException e, String[] tokenNames) {
228 tokenName = tokenNames[ute.expecting];
240 tokenName = tokenNames[mte.expecting];
251 tokenName = tokenNames[mte.expecting];
263 tokenName = tokenNames[mtne.expecting];
756 * that overrides this to point to their String[] tokenNames.
  /external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
TestSymbolDefinitions.java 51 String tokenNames = "A, B, C";
52 checkSymbols(g, rules, tokenNames);
65 String tokenNames = "A, B, C, D";
66 checkSymbols(g, rules, tokenNames);
79 String tokenNames = "A, C, D";
80 checkSymbols(g, rules, tokenNames);
93 String tokenNames = "A, B, C, D, 'c'";
94 checkSymbols(g, rules, tokenNames);
106 String tokenNames = "C, FOO, ID, 'begin', 'end', ';'";
107 checkSymbols(g, rules, tokenNames);
    [all...]
  /external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
BaseRecognizer.js 233 * @param {Array} tokenNames array of token names (strings).
236 displayRecognitionError: function(tokenNames, e) {
238 msg = this.getErrorMessage(e, tokenNames);
288 * @param {Array} tokenNames array of token names (strings).
292 getErrorMessage: function(e, tokenNames) {
302 tokenName = tokenNames[ute.expecting];
313 tokenName = tokenNames[mte.expecting];
324 tokenName = tokenNames[mte.expecting];
797 * that overrides this to point to their String[] tokenNames.
    [all...]
  /external/antlr/antlr-3.4/runtime/Python/antlr3/
recognizers.py 146 tokenNames = None
287 self.displayRecognitionError(self.tokenNames, e)
290 def displayRecognitionError(self, tokenNames, e):
292 msg = self.getErrorMessage(e, tokenNames)
296 def getErrorMessage(self, e, tokenNames):
327 tokenName = self.tokenNames[e.expecting]
340 tokenName = self.tokenNames[e.expecting]
351 tokenName = self.tokenNames[e.expecting]
363 tokenName = self.tokenNames[e.expecting]
    [all...]

Completed in 3971 milliseconds

1 2 3 4 5 6 7 8 9