Home
last modified time | relevance | path

Searched refs:ttype (Results 1 – 25 of 152) sorted by relevance

1234567

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreePatternParser.cs38 protected int ttype; field in Antlr.Runtime.Tree.TreePatternParser
46 ttype = tokenizer.NextToken(); // kickstart in TreePatternParser()
50 if (ttype == TreePatternLexer.BEGIN) { in Pattern()
52 } else if (ttype == TreePatternLexer.ID) { in Pattern()
54 if (ttype == TreePatternLexer.EOF) { in Pattern()
63 if (ttype != TreePatternLexer.BEGIN) in ParseTree()
66 ttype = tokenizer.NextToken(); in ParseTree()
71 while (ttype == TreePatternLexer.BEGIN || in ParseTree()
72 ttype == TreePatternLexer.ID || in ParseTree()
73 ttype == TreePatternLexer.PERCENT || in ParseTree()
[all …]
DTreeWizard.cs184 for (int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++) { in ComputeTokenTypes()
185 string name = tokenNames[ttype]; in ComputeTokenTypes()
186 m[name] = ttype; in ComputeTokenTypes()
226 int ttype = adaptor.GetType(t); in IndexCore()
228 if (!m.TryGetValue(ttype, out elements) || elements == null) { in IndexCore()
230 m[ttype] = elements; in IndexCore()
267 public virtual IList Find(object t, int ttype) { in Find() argument
269 Visit(t, ttype, new FindTreeWizardVisitor(nodes)); in Find()
292 public virtual object FindFirst(object t, int ttype) { in FindFirst() argument
307 public void Visit(object t, int ttype, IContextVisitor visitor) { in Visit() argument
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreePatternParser.cs40 protected int ttype; field in Antlr.Runtime.Tree.TreePatternParser
49 ttype = tokenizer.NextToken(); // kickstart in TreePatternParser()
54 if ( ttype == TreePatternLexer.Begin ) in Pattern()
58 else if ( ttype == TreePatternLexer.Id ) in Pattern()
61 if ( ttype == CharStreamConstants.EndOfFile ) in Pattern()
72 if ( ttype != TreePatternLexer.Begin ) in ParseTree()
75 ttype = tokenizer.NextToken(); in ParseTree()
81 while ( ttype == TreePatternLexer.Begin || in ParseTree()
82 ttype == TreePatternLexer.Id || in ParseTree()
83 ttype == TreePatternLexer.Percent || in ParseTree()
[all …]
DTreeWizard.cs208 for ( int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++ ) in ComputeTokenTypes()
210 string name = tokenNames[ttype]; in ComputeTokenTypes()
211 m[name] = ttype; in ComputeTokenTypes()
256 int ttype = adaptor.GetType( t ); in IndexCore()
258 if ( !m.TryGetValue( ttype, out elements ) || elements == null ) in IndexCore()
261 m[ttype] = elements; in IndexCore()
306 public virtual IList Find( object t, int ttype ) in Find() argument
309 Visit( t, ttype, new FindTreeWizardVisitor( nodes ) ); in Find()
334 public virtual object FindFirst( object t, int ttype ) in FindFirst() argument
351 public void Visit( object t, int ttype, IContextVisitor visitor ) in Visit() argument
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DTreePatternParser.java35 protected int ttype; field in TreePatternParser
43 ttype = tokenizer.nextToken(); // kickstart in TreePatternParser()
47 if ( ttype==TreePatternLexer.BEGIN ) { in pattern()
50 else if ( ttype==TreePatternLexer.ID ) { in pattern()
52 if ( ttype==TreePatternLexer.EOF ) { in pattern()
61 if ( ttype != TreePatternLexer.BEGIN ) { in parseTree()
64 ttype = tokenizer.nextToken(); in parseTree()
69 while ( ttype==TreePatternLexer.BEGIN || in parseTree()
70 ttype==TreePatternLexer.ID || in parseTree()
71 ttype==TreePatternLexer.PERCENT || in parseTree()
[all …]
DTreeWizard.java148 for (int ttype = Token.MIN_TOKEN_TYPE; ttype < tokenNames.length; ttype++) { in computeTokenTypes()
149 String name = tokenNames[ttype]; in computeTokenTypes()
150 m.put(name, new Integer(ttype)); in computeTokenTypes()
185 int ttype = adaptor.getType(t); in _index() local
186 List elements = (List)m.get(new Integer(ttype)); in _index()
189 m.put(new Integer(ttype), elements); in _index()
200 public List find(Object t, int ttype) { in find() argument
202 visit(t, ttype, new TreeWizard.Visitor() { in find()
236 public Object findFirst(Object t, int ttype) { in findFirst() argument
249 public void visit(Object t, int ttype, ContextVisitor visitor) { in visit() argument
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRTreePatternParser.m50 //ttype = [tokenizer nextToken]; // kickstart
66 ttype = [aTokenizer nextToken]; // kickstart
84 if ( ttype==ANTLRLexerTokenTypeBEGIN ) {
87 else if ( ttype==ANTLRLexerTokenTypeID ) {
89 if ( ttype==ANTLRLexerTokenTypeEOF ) {
99 if ( ttype != ANTLRLexerTokenTypeBEGIN ) {
102 ttype = [tokenizer nextToken];
107 while ( ttype==ANTLRLexerTokenTypeBEGIN ||
108 ttype==ANTLRLexerTokenTypeID ||
109 ttype==ANTLRLexerTokenTypePERCENT ||
[all …]
/external/antlr/antlr-3.4/runtime/Python/antlr3/
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 = self.tokenizer.nextToken()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DStreamTokenizerTest.java160 assertTrue("Wrong Token type1: " + (char) st.ttype, in test_nextToken()
161 st.ttype == StreamTokenizer.TT_NUMBER); in test_nextToken()
163 assertTrue("Wrong Token type2: " + st.ttype, in test_nextToken()
164 st.ttype == StreamTokenizer.TT_WORD); in test_nextToken()
166 assertTrue("Wrong Token type3: " + st.ttype, st.ttype == '/'); in test_nextToken()
168 assertTrue("Wrong Token type4: " + st.ttype, in test_nextToken()
169 st.ttype == StreamTokenizer.TT_WORD); in test_nextToken()
171 assertTrue("Wrong Token type5: " + st.ttype, in test_nextToken()
172 st.ttype == StreamTokenizer.TT_WORD); in test_nextToken()
174 assertTrue("Wrong Token type6: " + st.ttype, st.ttype == '\''); in test_nextToken()
[all …]
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
DBaseRecognizer.pm67 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;
124 my ($self, $input, $ttype, $follow) = @_;
126 if ($self->mismatch_is_unwanted_token($input, $ttype)) {
128 expecting => $ttype,
134 expecting => $ttype,
140 expecting => $ttype,
[all …]
DCommonTokenStream.pm140 my ($self, $ttype, $channel) = @_;
146 $self->channel_override_map->{$ttype} = $channel;
150 my ($self, $ttype) = @_;
156 $self->discard_set->{$ttype} = 1;
180 my $ttype = $args->{ttype};
181 $types = ANTLR::Runtime::BitSet->of($ttype);
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DBaseRecognizer.js109 match: function(input, ttype, follow) { argument
111 if ( input.LA(1)===ttype ) {
121 matchedSymbol = this.recoverFromMismatchedToken(input, ttype, follow);
142 mismatchIsUnwantedToken: function(input, ttype) { argument
143 return input.LA(2)===ttype;
192 mismatch: function(input, ttype, follow) { argument
193 if ( this.mismatchIsUnwantedToken(input, ttype) ) {
194 throw new org.antlr.runtime.UnwantedTokenException(ttype, input);
196 throw new org.antlr.runtime.MissingTokenException(ttype, input, null);
198 throw new org.antlr.runtime.MismatchedTokenException(ttype, input);
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DBaseRecognizer.java100 public Object match(IntStream input, int ttype, BitSet follow) in match() argument
105 if ( input.LA(1)==ttype ) { in match()
115 matchedSymbol = recoverFromMismatchedToken(input, ttype, follow); in match()
126 public boolean mismatchIsUnwantedToken(IntStream input, int ttype) { in mismatchIsUnwantedToken() argument
127 return input.LA(2)==ttype; in mismatchIsUnwantedToken()
588 protected Object recoverFromMismatchedToken(IntStream input, int ttype, BitSet follow) in recoverFromMismatchedToken() argument
593 if ( mismatchIsUnwantedToken(input, ttype) ) { in recoverFromMismatchedToken()
594 e = new UnwantedTokenException(ttype, input); in recoverFromMismatchedToken()
611 Object inserted = getMissingSymbol(input, e, ttype, follow); in recoverFromMismatchedToken()
612 e = new MissingTokenException(ttype, input, inserted); in recoverFromMismatchedToken()
[all …]
DSerializedGrammar.java78 int ttype; field in SerializedGrammar.TokenRef
79 public TokenRef(int ttype) { this.ttype = ttype; } in TokenRef() argument
80 public String toString() { return String.valueOf(ttype); } in toString()
153 int ttype = in.readShort(); in readAlt() local
154 alt.add(new TokenRef(ttype)); in readAlt()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DBaseRecognizer.cs131 public virtual object Match(IIntStream input, int ttype, BitSet follow) { in Match() argument
134 if (input.LA(1) == ttype) { in Match()
144 matchedSymbol = RecoverFromMismatchedToken(input, ttype, follow); in Match()
155 public virtual bool MismatchIsUnwantedToken(IIntStream input, int ttype) { in MismatchIsUnwantedToken() argument
156 return input.LA(2) == ttype; in MismatchIsUnwantedToken()
616 … protected virtual object RecoverFromMismatchedToken(IIntStream input, int ttype, BitSet follow) { in RecoverFromMismatchedToken() argument
619 if (MismatchIsUnwantedToken(input, ttype)) { in RecoverFromMismatchedToken()
620 e = new UnwantedTokenException(ttype, input, TokenNames); in RecoverFromMismatchedToken()
637 object inserted = GetMissingSymbol(input, e, ttype, follow); in RecoverFromMismatchedToken()
638 e = new MissingTokenException(ttype, input, inserted); in RecoverFromMismatchedToken()
[all …]
DLegacyCommonTokenStream.cs209 public virtual void SetTokenTypeChannel(int ttype, int channel) { in SetTokenTypeChannel() argument
213 channelOverrideMap[ttype] = channel; in SetTokenTypeChannel()
216 public virtual void DiscardTokenType(int ttype) { in DiscardTokenType() argument
220 discardSet.Add(ttype, ttype); in DiscardTokenType()
276 public virtual IList<IToken> GetTokens(int start, int stop, int ttype) { in GetTokens() argument
277 return GetTokens(start, stop, BitSet.Of(ttype)); in GetTokens()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DBaseRecognizer.cs141 public virtual object Match( IIntStream input, int ttype, BitSet follow ) in Match() argument
145 if ( input.LA( 1 ) == ttype ) in Match()
157 matchedSymbol = RecoverFromMismatchedToken( input, ttype, follow ); in Match()
169 public virtual bool MismatchIsUnwantedToken( IIntStream input, int ttype ) in MismatchIsUnwantedToken() argument
171 return input.LA( 2 ) == ttype; in MismatchIsUnwantedToken()
695 … protected virtual object RecoverFromMismatchedToken( IIntStream input, int ttype, BitSet follow ) in RecoverFromMismatchedToken() argument
699 if ( MismatchIsUnwantedToken( input, ttype ) ) in RecoverFromMismatchedToken()
701 e = new UnwantedTokenException( ttype, input, TokenNames ); in RecoverFromMismatchedToken()
719 object inserted = GetMissingSymbol( input, e, ttype, follow ); in RecoverFromMismatchedToken()
720 e = new MissingTokenException( ttype, input, inserted ); in RecoverFromMismatchedToken()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DActionScriptTarget.java45 int ttype) { in getTokenTypeAsTargetLabel() argument
48 if (ttype >= 0 && ttype <= 3) { in getTokenTypeAsTargetLabel()
49 return String.valueOf(ttype); in getTokenTypeAsTargetLabel()
52 String name = generator.grammar.getTokenDisplayName(ttype); in getTokenTypeAsTargetLabel()
56 return String.valueOf(ttype); in getTokenTypeAsTargetLabel()
DPythonTarget.java47 int ttype) { in getTokenTypeAsTargetLabel() argument
50 if ( ttype >= 0 && ttype <= 3 ) { in getTokenTypeAsTargetLabel()
51 return String.valueOf(ttype); in getTokenTypeAsTargetLabel()
54 String name = generator.grammar.getTokenDisplayName(ttype); in getTokenTypeAsTargetLabel()
58 return String.valueOf(ttype); in getTokenTypeAsTargetLabel()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammarAST.java386 public GrammarAST findFirstType(int ttype) { in findFirstType() argument
388 if ( this.getType()==ttype ) { in findFirstType()
394 if ( child.getType()==ttype ) { in findFirstType()
401 public List<GrammarAST> findAllType(int ttype) { in findAllType() argument
403 _findAllType(ttype, nodes); in findAllType()
407 public void _findAllType(int ttype, List<GrammarAST> nodes) { in _findAllType() argument
409 if ( this.getType()==ttype ) nodes.add(this); in _findAllType()
413 child._findAllType(ttype, nodes); in _findAllType()
492 int ttype = child.getType(); in getChildrenForDupTree() local
493 if (ttype == ANTLRParser.REWRITES || ttype == ANTLRParser.REWRITE || ttype==ANTLRParser.ACTION) { in getChildrenForDupTree()
[all …]
/external/clang/test/CodeGen/
D2008-03-24-BitField-And-Alloca.c40 unsigned int ttype : 3; member
69 (iospec.key_io.ttype != G_VS) && in foo()
70 (iospec.key_io.ttype != G_GS) && in foo()
71 (iospec.key_io.ttype != G_FS)) || in foo()
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/
Dt053heteroT9.g8 var x, y, z, token, ttype;
10 ttype = arguments[0];
14 token = new org.antlr.runtime.CommonToken(ttype, "");
16 ttype = arguments[0];
Dt053heteroTP18.g9 function V18(ttype, tree) {
11 V18.superclass.constructor.call(this, new org.antlr.runtime.CommonToken(ttype));
14 this.token.type = ttype;
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3baserecognizer.c54 static void * match (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSE…
56 static void mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITS…
57 …hIsUnwantedToken (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM is, ANTLR3_UINT32 ttype);
64 …erFromMismatchedToken (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LI…
416 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow) in match() argument
453 if (is->_LA(is, 1) == ttype) in match()
478 matchedSymbol = recognizer->recoverFromMismatchedToken(recognizer, ttype, follow); in match()
529 …atchIsUnwantedToken(pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM is, ANTLR3_UINT32 ttype) in mismatchIsUnwantedToken() argument
535 if (nextt == ttype) in mismatchIsUnwantedToken()
642 mismatch(pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow) in mismatch() argument
[all …]
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3baserecognizer.h120 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
132 …(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,

1234567