Home
last modified time | relevance | path

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

123456789

/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/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/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/ltp/lib/
Dtst_res.c97 static void tst_condense(int tnum, int ttype, const char *tmesg);
98 static void tst_print(const char *tcid, int tnum, int ttype, const char *tmesg);
141 const char *strttype(int ttype) in strttype() argument
152 PAIR_LOOKUP(ttype_pairs, TTYPE_RESULT(ttype)); in strttype()
158 static void tst_res__(const char *file, const int lineno, int ttype, in tst_res__() argument
165 int ttype_result = TTYPE_RESULT(ttype); in tst_res__()
187 tst_print(TCID, 0, ttype, tmesg); in tst_res__()
200 tst_condense(tst_count + 1, ttype, tmesg); in tst_res__()
203 tst_print(TCID, tst_count + 1, ttype, tmesg); in tst_res__()
213 static void tst_condense(int tnum, int ttype, const char *tmesg) in tst_condense() argument
[all …]
Dtst_test.c157 static void update_results(int ttype) in update_results() argument
162 switch (ttype) { in update_results()
178 static void print_result(const char *file, const int lineno, int ttype, in print_result() argument
187 switch (TTYPE_RESULT(ttype)) { in print_result()
207 tst_brk(TBROK, "Invalid ttype value %i", ttype); in print_result()
211 if (ttype & TERRNO) in print_result()
214 if (ttype & TTERRNO) in print_result()
222 ret = snprintf(str, size, "%s%s: %s", tst_ttype2color(ttype), in print_result()
251 void tst_vres_(const char *file, const int lineno, int ttype, in tst_vres_() argument
254 print_result(file, lineno, ttype, fmt, va); in tst_vres_()
[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/ltp/testcases/kernel/syscalls/get_mempolicy/
Dget_mempolicy01.c89 int ttype; member
109 .ttype = DEFAULT,
116 .ttype = DEFAULT,
123 .ttype = DEFAULT,
130 .ttype = DEFAULT,
137 .ttype = DEFAULT,
144 .ttype = ADDR,
151 .ttype = ADDR,
158 .ttype = ADDR,
165 .ttype = ADDR,
[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 …]
/external/ltp/include/
Dtst_test.h47 void tst_res_(const char *file, const int lineno, int ttype,
51 #define tst_res(ttype, arg_fmt, ...) \ argument
52 tst_res_(__FILE__, __LINE__, (ttype), (arg_fmt), ##__VA_ARGS__)
54 void tst_resm_hexd_(const char *file, const int lineno, int ttype,
58 #define tst_res_hexd(ttype, buf, size, arg_fmt, ...) \ argument
59 tst_resm_hexd_(__FILE__, __LINE__, (ttype), (buf), (size), \
65 void tst_brk_(const char *file, const int lineno, int ttype,
69 #define tst_brk(ttype, arg_fmt, ...) \ argument
70 tst_brk_(__FILE__, __LINE__, (ttype), (arg_fmt), ##__VA_ARGS__)
/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/ltp/include/old/
Dtest.h142 const char *strttype(int ttype);
144 void tst_resm_(const char *file, const int lineno, int ttype,
147 #define tst_resm(ttype, arg_fmt, ...) \ argument
148 tst_resm_(__FILE__, __LINE__, (ttype), \
151 void tst_resm_hexd_(const char *file, const int lineno, int ttype,
154 #define tst_resm_hexd(ttype, buf, size, arg_fmt, ...) \ argument
155 tst_resm_hexd_(__FILE__, __LINE__, (ttype), (buf), (size), \
158 void tst_brkm_(const char *file, const int lineno, int ttype,
Dltp_priv.h55 void tst_vbrk_(const char *file, const int lineno, int ttype,
58 void tst_brk_(const char *file, const int lineno, int ttype,
61 void tst_vres_(const char *file, const int lineno, int ttype,
64 void tst_res_(const char *file, const int lineno, int ttype,
/external/python/cpython3/Tools/i18n/
Dpygettext.py324 def __call__(self, ttype, tstring, stup, etup, line): argument
329 self.__state(ttype, tstring, stup[0])
331 def __waiting(self, ttype, tstring, lineno): argument
337 if ttype == tokenize.STRING:
340 elif ttype not in (tokenize.COMMENT, tokenize.NL):
344 if ttype == tokenize.NAME and tstring in ('class', 'def'):
347 if ttype == tokenize.NAME and tstring in opts.keywords:
350 def __suiteseen(self, ttype, tstring, lineno): argument
352 if ttype == tokenize.OP and tstring == ':':
355 def __suitedocstring(self, ttype, tstring, lineno): argument
[all …]
/external/python/cpython2/Tools/i18n/
Dpygettext.py362 def __call__(self, ttype, tstring, stup, etup, line): argument
367 self.__state(ttype, tstring, stup[0])
369 def __waiting(self, ttype, tstring, lineno): argument
375 if ttype == tokenize.STRING:
378 elif ttype not in (tokenize.COMMENT, tokenize.NL):
382 if ttype == tokenize.NAME and tstring in ('class', 'def'):
385 if ttype == tokenize.NAME and tstring in opts.keywords:
388 def __suiteseen(self, ttype, tstring, lineno): argument
390 if ttype == tokenize.OP and tstring == ':':
393 def __suitedocstring(self, ttype, tstring, lineno): argument
[all …]
/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/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 …]
/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 …]

123456789