Home
last modified time | relevance | path

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

12345678

/external/antlr/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/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/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.java151 for (int ttype = Token.MIN_TOKEN_TYPE; ttype < tokenNames.length; ttype++) { in computeTokenTypes()
152 String name = tokenNames[ttype]; in computeTokenTypes()
153 m.put(name, ttype); in computeTokenTypes()
188 int ttype = adaptor.getType(t); in _index() local
189 List<Object> elements = m.get(ttype); in _index()
192 m.put(ttype, elements); in _index()
203 public List<? extends Object> find(Object t, int ttype) { in find() argument
205 visit(t, ttype, new TreeWizard.Visitor() { in find()
241 public Object findFirst(Object t, int ttype) { in findFirst() argument
254 public void visit(Object t, int ttype, ContextVisitor visitor) { in visit() argument
[all …]
/external/ltp/lib/
Dtst_res.c98 static void tst_condense(int tnum, int ttype, const char *tmesg);
99 static void tst_print(const char *tcid, int tnum, int ttype, const char *tmesg);
142 const char *strttype(int ttype) in strttype() argument
153 PAIR_LOOKUP(ttype_pairs, TTYPE_RESULT(ttype)); in strttype()
159 static void tst_res__(const char *file, const int lineno, int ttype, in tst_res__() argument
166 int ttype_result = TTYPE_RESULT(ttype); in tst_res__()
188 tst_print(TCID, 0, ttype, tmesg); in tst_res__()
201 tst_condense(tst_count + 1, ttype, tmesg); in tst_res__()
204 tst_print(TCID, tst_count + 1, ttype, tmesg); in tst_res__()
214 static void tst_condense(int tnum, int ttype, const char *tmesg) in tst_condense() argument
[all …]
Dtst_test.c158 static void update_results(int ttype) in update_results() argument
163 switch (ttype) { in update_results()
179 static void print_result(const char *file, const int lineno, int ttype, in print_result() argument
188 switch (TTYPE_RESULT(ttype)) { in print_result()
208 tst_brk(TBROK, "Invalid ttype value %i", ttype); in print_result()
212 if (ttype & TERRNO) { in print_result()
217 if (ttype & TTERRNO) { in print_result()
222 if (ttype & TRERRNO) { in print_result()
232 ret = snprintf(str, size, "%s%s: %s", tst_ttype2color(ttype), in print_result()
261 void tst_vres_(const char *file, const int lineno, int ttype, in tst_vres_() argument
[all …]
/external/antlr/runtime/ObjC/Framework/
DTreePatternParser.m50 //ttype = [tokenizer nextToken]; // kickstart
66 ttype = [aTokenizer nextToken]; // kickstart
84 if ( ttype==LexerTokenTypeBEGIN ) {
87 else if ( ttype==LexerTokenTypeID ) {
89 if ( ttype==LexerTokenTypeEOF ) {
99 if ( ttype != LexerTokenTypeBEGIN ) {
102 ttype = [tokenizer nextToken];
107 while ( ttype==LexerTokenTypeBEGIN ||
108 ttype==LexerTokenTypeID ||
109 ttype==LexerTokenTypePERCENT ||
[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/runtime/Python3/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/antlr/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/antlr/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.h44 void tst_res_(const char *file, const int lineno, int ttype,
48 #define tst_res(ttype, arg_fmt, ...) \ argument
49 tst_res_(__FILE__, __LINE__, (ttype), (arg_fmt), ##__VA_ARGS__)
51 void tst_resm_hexd_(const char *file, const int lineno, int ttype,
55 #define tst_res_hexd(ttype, buf, size, arg_fmt, ...) \ argument
56 tst_resm_hexd_(__FILE__, __LINE__, (ttype), (buf), (size), \
62 void tst_brk_(const char *file, const int lineno, int ttype,
66 #define tst_brk(ttype, arg_fmt, ...) \ argument
68 TST_BRK_SUPPORTS_ONLY_TCONF_TBROK(!((ttype) & \
70 tst_brk_(__FILE__, __LINE__, (ttype), (arg_fmt), ##__VA_ARGS__);\
/external/antlr/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/ltp/include/old/
Dtest.h116 const char *strttype(int ttype);
118 void tst_resm_(const char *file, const int lineno, int ttype,
121 #define tst_resm(ttype, arg_fmt, ...) \ argument
122 tst_resm_(__FILE__, __LINE__, (ttype), \
125 void tst_resm_hexd_(const char *file, const int lineno, int ttype,
128 #define tst_resm_hexd(ttype, buf, size, arg_fmt, ...) \ argument
129 tst_resm_hexd_(__FILE__, __LINE__, (ttype), (buf), (size), \
132 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/antlr/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.java85 int ttype; field in SerializedGrammar.TokenRef
86 public TokenRef(int ttype) { this.ttype = ttype; } in TokenRef() argument
88 public String toString() { return String.valueOf(ttype); } in toString()
163 int ttype = in.readShort(); in readAlt() local
164 alt.add(new TokenRef(ttype)); in readAlt()
/external/python/cpython3/Tools/i18n/
Dpygettext.py321 def __call__(self, ttype, tstring, stup, etup, line): argument
326 self.__state(ttype, tstring, stup[0])
328 def __waiting(self, ttype, tstring, lineno): argument
334 if ttype == tokenize.STRING and is_literal_string(tstring):
337 elif ttype not in (tokenize.COMMENT, tokenize.NL):
341 if ttype == tokenize.NAME and tstring in ('class', 'def'):
344 if ttype == tokenize.NAME and tstring in opts.keywords:
347 def __suiteseen(self, ttype, tstring, lineno): argument
349 if ttype == tokenize.OP:
358 def __suitedocstring(self, ttype, tstring, lineno): argument
[all …]
/external/python/cpython2/Tools/i18n/
Dpygettext.py356 def __call__(self, ttype, tstring, stup, etup, line): argument
361 self.__state(ttype, tstring, stup[0])
363 def __waiting(self, ttype, tstring, lineno): argument
369 if ttype == tokenize.STRING:
372 elif ttype not in (tokenize.COMMENT, tokenize.NL):
376 if ttype == tokenize.NAME and tstring in ('class', 'def'):
379 if ttype == tokenize.NAME and tstring in opts.keywords:
382 def __suiteseen(self, ttype, tstring, lineno): argument
384 if ttype == tokenize.OP and tstring == ':':
387 def __suitedocstring(self, ttype, tstring, lineno): argument
[all …]
/external/antlr/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/runtime/CSharp3/Sources/Antlr3.Runtime/
DBaseRecognizer.cs143 public virtual object Match( IIntStream input, int ttype, BitSet follow ) in Match() argument
147 if ( input.LA( 1 ) == ttype ) in Match()
159 matchedSymbol = RecoverFromMismatchedToken( input, ttype, follow ); in Match()
171 public virtual bool MismatchIsUnwantedToken( IIntStream input, int ttype ) in MismatchIsUnwantedToken() argument
173 return input.LA( 2 ) == ttype; in MismatchIsUnwantedToken()
697 … protected virtual object RecoverFromMismatchedToken( IIntStream input, int ttype, BitSet follow ) in RecoverFromMismatchedToken() argument
701 if ( MismatchIsUnwantedToken( input, ttype ) ) in RecoverFromMismatchedToken()
703 e = new UnwantedTokenException( ttype, input, TokenNames ); in RecoverFromMismatchedToken()
721 object inserted = GetMissingSymbol( input, e, ttype, follow ); in RecoverFromMismatchedToken()
722 e = new MissingTokenException( ttype, input, inserted ); in RecoverFromMismatchedToken()
[all …]
/external/antlr/tool/src/main/java/org/antlr/codegen/
DActionScriptTarget.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/tool/src/main/java/org/antlr/tool/
DGrammarAST.java387 public GrammarAST findFirstType(int ttype) { in findFirstType() argument
389 if ( this.getType()==ttype ) { in findFirstType()
395 if ( child.getType()==ttype ) { in findFirstType()
402 public List<GrammarAST> findAllType(int ttype) { in findAllType() argument
404 _findAllType(ttype, nodes); in findAllType()
408 public void _findAllType(int ttype, List<GrammarAST> nodes) { in _findAllType() argument
410 if ( this.getType()==ttype ) nodes.add(this); in _findAllType()
414 child._findAllType(ttype, nodes); in _findAllType()
493 int ttype = child.getType(); in getChildrenForDupTree() local
494 if (ttype == ANTLRParser.REWRITES || ttype == ANTLRParser.REWRITE || ttype==ANTLRParser.ACTION) { in getChildrenForDupTree()
[all …]

12345678