/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
PythonTarget.java | 47 int ttype) { 50 if ( ttype >= 0 && ttype <= 3 ) { 51 return String.valueOf(ttype); 54 String name = generator.grammar.getTokenDisplayName(ttype); 58 return String.valueOf(ttype);
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
TreePatternParser.cs | 38 protected int ttype; field in class:Antlr.Runtime.Tree.TreePatternParser 46 ttype = tokenizer.NextToken(); // kickstart 50 if (ttype == TreePatternLexer.BEGIN) { 52 } else if (ttype == TreePatternLexer.ID) { 54 if (ttype == TreePatternLexer.EOF) { 63 if (ttype != TreePatternLexer.BEGIN) 66 ttype = tokenizer.NextToken(); 71 while (ttype == TreePatternLexer.BEGIN || 72 ttype == TreePatternLexer.ID || 73 ttype == TreePatternLexer.PERCENT | [all...] |
ITree.cs | 65 /** <summary>Is there is a node above with token type ttype?</summary> */ 66 bool HasAncestor(int ttype); 69 ITree GetAncestor(int ttype);
|
TreeWizard.cs | 184 for (int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++) { 185 string name = tokenNames[ttype]; 186 m[name] = ttype; 226 int ttype = adaptor.GetType(t); 228 if (!m.TryGetValue(ttype, out elements) || elements == null) { 230 m[ttype] = elements; 266 /** <summary>Return a List of tree nodes with token type ttype</summary> */ 267 public virtual IList Find(object t, int ttype) { [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
TreePatternParser.cs | 40 protected int ttype; field in class:Antlr.Runtime.Tree.TreePatternParser 49 ttype = tokenizer.NextToken(); // kickstart 54 if ( ttype == TreePatternLexer.Begin ) 58 else if ( ttype == TreePatternLexer.Id ) 61 if ( ttype == CharStreamConstants.EndOfFile ) 72 if ( ttype != TreePatternLexer.Begin ) 75 ttype = tokenizer.NextToken(); 81 while ( ttype == TreePatternLexer.Begin || 82 ttype == TreePatternLexer.Id || 83 ttype == TreePatternLexer.Percent | [all...] |
ITree.cs | 69 /** <summary>Is there is a node above with token type ttype?</summary> */ 70 bool HasAncestor( int ttype ); 73 ITree GetAncestor( int ttype );
|
TreeWizard.cs | 208 for ( int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++ ) 210 string name = tokenNames[ttype]; 211 m[name] = ttype; 256 int ttype = adaptor.GetType( t ); 258 if ( !m.TryGetValue( ttype, out elements ) || elements == null ) 261 m[ttype] = elements; 305 /** <summary>Return a List of tree nodes with token type ttype</summary> */ 306 public virtual IList Find( object t, int ttype ) [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
TreePatternParser.java | 35 protected int ttype; field in class:TreePatternParser 43 ttype = tokenizer.nextToken(); // kickstart 47 if ( ttype==TreePatternLexer.BEGIN ) { 50 else if ( ttype==TreePatternLexer.ID ) { 52 if ( ttype==TreePatternLexer.EOF ) { 61 if ( ttype != TreePatternLexer.BEGIN ) { 64 ttype = tokenizer.nextToken(); 69 while ( ttype==TreePatternLexer.BEGIN || 70 ttype==TreePatternLexer.ID || 71 ttype==TreePatternLexer.PERCENT | [all...] |
Tree.java | 57 /** Is there is a node above with token type ttype? */ 58 public boolean hasAncestor(int ttype); 61 public Tree getAncestor(int ttype);
|
TreeWizard.java | 148 for (int ttype = Token.MIN_TOKEN_TYPE; ttype < tokenNames.length; ttype++) { 149 String name = tokenNames[ttype]; 150 m.put(name, new Integer(ttype)); 185 int ttype = adaptor.getType(t); local 186 List elements = (List)m.get(new Integer(ttype)); 189 m.put(new Integer(ttype), elements); 199 /** Return a List of tree nodes with token type ttype */ 200 public List find(Object t, int ttype) { [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
phystokens.py | 19 for ttype, ttext, (slineno, scol), (elineno, ecol), ltext in toks: 42 elif ttype == token.STRING: 57 last_ttype = ttype 58 yield ttype, ttext, (slineno, scol), (elineno, ecol), ltext 82 for ttype, ttext, (_, scol), (_, ecol), _ in phys_tokens(tokgen): 92 elif ttype in ws_tokens: 98 tok_class = tokenize.tok_name.get(ttype, 'xx').lower()[:3] 99 if ttype == token.NAME and keyword.iskeyword(ttext):
|
/external/clang/test/CodeGen/ |
2008-03-24-BitField-And-Alloca.c | 40 unsigned int ttype : 3; member in struct:_Key::__anon19125 69 (iospec.key_io.ttype != G_VS) && 70 (iospec.key_io.ttype != G_GS) && 71 (iospec.key_io.ttype != G_FS)) ||
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRTreePatternParser.h | 40 NSInteger ttype; variable 60 @property NSInteger ttype; variable
|
ANTLRPtrStack.h | 48 - (id)getName:(NSInteger)ttype;
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
StreamTokenizerTest.java | 160 assertTrue("Wrong Token type1: " + (char) st.ttype, 161 st.ttype == StreamTokenizer.TT_NUMBER); 163 assertTrue("Wrong Token type2: " + st.ttype, 164 st.ttype == StreamTokenizer.TT_WORD); 166 assertTrue("Wrong Token type3: " + st.ttype, st.ttype == '/'); 168 assertTrue("Wrong Token type4: " + st.ttype, 169 st.ttype == StreamTokenizer.TT_WORD); 171 assertTrue("Wrong Token type5: " + st.ttype, 172 st.ttype == StreamTokenizer.TT_WORD) [all...] |
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
treewizard.py | 168 self.ttype = tokenizer.nextToken() # kickstart 172 if self.ttype == BEGIN: 175 elif self.ttype == ID: 177 if self.ttype == EOF: 186 if self.ttype != BEGIN: 189 self.ttype = self.tokenizer.nextToken() 194 while self.ttype in (BEGIN, ID, PERCENT, DOT): 195 if self.ttype == BEGIN: 206 if self.ttype != END: 209 self.ttype = self.tokenizer.nextToken( [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
BaseRecognizer.js | 92 /** Match current input symbol against ttype. Attempt 104 * @param {Number} ttype input type to match. 109 match: function(input, ttype, follow) { 111 if ( input.LA(1)===ttype ) { 121 matchedSymbol = this.recoverFromMismatchedToken(input, ttype, follow); 136 * Is the following token (LA(2)) the unwanted type (ttype)? 138 * @param {Number} ttype the undesired token type. 142 mismatchIsUnwantedToken: function(input, ttype) { 143 return input.LA(2)===ttype; 188 * @param {Number} ttype input type to match [all...] |
/libcore/luni/src/main/java/java/io/ |
StreamTokenizer.java | 31 * Contains a number if the current token is a number ({@code ttype} == 37 * Contains a string if the current token is a word ({@code ttype} == 68 * After calling {@code nextToken()}, {@code ttype} contains the type of 70 * converted to an integer is stored in {@code ttype}. For a quoted string, 81 public int ttype = TT_UNKNOWN; field in class:StreamTokenizer 217 * as {@code TT_EOF} in {@code ttype} by this tokenizer. 249 * type of the token is stored in the {@code ttype} field, additional 252 * @return the value of {@code ttype}. 259 if (ttype != TT_UNKNOWN) { 260 return ttype; [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
BaseRecognizer.java | 89 /** Match current input symbol against ttype. Attempt 100 public Object match(IntStream input, int ttype, BitSet follow) 105 if ( input.LA(1)==ttype ) { 115 matchedSymbol = recoverFromMismatchedToken(input, ttype, follow); 126 public boolean mismatchIsUnwantedToken(IntStream input, int ttype) { 127 return input.LA(2)==ttype; 571 * ttype then it is ok to "insert" the missing token, else throw 588 protected Object recoverFromMismatchedToken(IntStream input, int ttype, BitSet follow) 593 if ( mismatchIsUnwantedToken(input, ttype) ) { 594 e = new UnwantedTokenException(ttype, input) 677 int ttype = input.LA(1); local 687 int ttype = input.LA(1); local [all...] |
Token.java | 68 public void setType(int ttype);
|
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
BaseRecognizer.pm | 65 Readonly my $usage => 'void match(IntStream input, int ttype, BitSet follow)'; 67 my ($self, $input, $ttype, $follow) = @_; 70 if ($input->LA(1) eq $ttype) { 82 return $self->recover_from_mismatched_token($input, $ttype, $follow); 96 my ($self, $input, $ttype) = @_; 97 return $input->LA(2) == $ttype; 122 Readonly my $usage => 'void mismatch(IntStream input, int ttype, BitSet follow)'; 124 my ($self, $input, $ttype, $follow) = @_; 126 if ($self->mismatch_is_unwanted_token($input, $ttype)) { 128 expecting => $ttype, [all...] |
/external/antlr/antlr-3.4/runtime/C/include/ |
antlr3baserecognizer.h | 120 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow); 132 (*mismatchIsUnwantedToken) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, pANTLR3_INT_STREAM input, ANTLR3_UINT32 ttype); 145 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow); 230 ANTLR3_UINT32 ttype,
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/ |
ANTLRTreePatternParser.h | 40 NSInteger ttype; variable
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/ |
ANTLRTreePatternParser.h | 40 NSInteger ttype; variable
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/ |
ANTLRTreePatternParser.h | 40 NSInteger ttype; variable
|