Searched refs:ttype (Results 1 - 25 of 147) sorted by relevance

123456

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
H A DPythonTarget.java47 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);
46 getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype) argument
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
H A DTreePatternParser.cs38 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
[all...]
H A DITree.cs65 /** <summary>Is there is a node above with token type ttype?</summary> */
66 bool HasAncestor(int ttype); argument
69 ITree GetAncestor(int ttype); argument
H A DTreeWizard.cs184 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) { argument
292 FindFirst(object t, int ttype) argument
307 Visit(object t, int ttype, IContextVisitor visitor) argument
311 Visit(object t, int ttype, System.Action<object> action) argument
316 VisitCore(object t, object parent, int childIndex, int ttype, IContextVisitor visitor) argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
H A DTreePatternParser.cs40 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
[all...]
H A DITree.cs69 /** <summary>Is there is a node above with token type ttype?</summary> */
70 bool HasAncestor( int ttype );
73 ITree GetAncestor( int ttype );
H A DTreeWizard.cs208 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 )
351 Visit( object t, int ttype, IContextVisitor visitor ) argument
356 Visit( object t, int ttype, System.Action<object> action ) argument
362 VisitCore( object t, object parent, int childIndex, int ttype, IContextVisitor visitor ) argument
[all...]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
H A DTreePatternParser.java35 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
[all...]
H A DTree.java57 /** Is there is a node above with token type ttype? */
58 public boolean hasAncestor(int ttype); argument
61 public Tree getAncestor(int ttype); argument
H A DTreeWizard.java148 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);
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) { argument
236 findFirst(Object t, int ttype) argument
249 visit(Object t, int ttype, ContextVisitor visitor) argument
254 _visit(Object t, Object parent, int childIndex, int ttype, ContextVisitor visitor) argument
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/
H A Dphystokens.py19 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/antlr/antlr-3.4/runtime/Python/antlr3/
H A Dtreewizard.py168 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
[all...]
/external/clang/test/CodeGen/
H A D2008-03-24-BitField-And-Alloca.c40 unsigned int ttype : 3; member in struct:_Key::__anon18557
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/
H A DANTLRTreePatternParser.h40 NSInteger ttype; variable
60 @property NSInteger ttype; variable
H A DANTLRPtrStack.h48 - (id)getName:(NSInteger)ttype;
/external/libsepol/src/
H A Dassertion.c32 unsigned int stype, unsigned int ttype,
40 p->p_type_val_to_name[ttype],
47 p->p_type_val_to_name[ttype],
54 p->p_type_val_to_name[ttype],
64 unsigned int stype, unsigned int ttype,
74 avkey.target_type = ttype + 1;
81 report_failure(handle, p, avrule, stype, ttype, curperm, node);
89 report_failure(handle, p, avrule, stype, ttype, curperm, node);
30 report_failure(sepol_handle_t *handle, policydb_t *p, const avrule_t * avrule, unsigned int stype, unsigned int ttype, const class_perm_node_t *curperm, const avtab_ptr_t node) argument
61 check_assertion_helper(sepol_handle_t * handle, policydb_t * p, avtab_t * te_avtab, avtab_t * te_cond_avtab, unsigned int stype, unsigned int ttype, const avrule_t * avrule) argument
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
H A DBaseRecognizer.js92 /** 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 inpu
[all...]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DBaseRecognizer.java89 /** Match current input symbol against ttype. Attempt
100 public Object match(IntStream input, int ttype, BitSet follow) argument
105 if ( input.LA(1)==ttype ) {
115 matchedSymbol = recoverFromMismatchedToken(input, ttype, follow);
126 public boolean mismatchIsUnwantedToken(IntStream input, int ttype) { argument
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) argument
593 if ( mismatchIsUnwantedToken(input, ttype) ) {
594 e = new UnwantedTokenException(ttype, inpu
[all...]
H A DToken.java68 public void setType(int ttype); argument
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
H A DBaseRecognizer.pm65 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/
H A Dantlr3baserecognizer.h120 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/
H A DANTLRTreePatternParser.h40 NSInteger ttype; variable
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
H A DANTLRTreePatternParser.h40 NSInteger ttype; variable
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
H A DANTLRTreePatternParser.h40 NSInteger ttype; variable
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DToken.as36 function set type(ttype:int):void;

Completed in 3872 milliseconds

123456