/external/clang/lib/Basic/ |
OperatorPrecedence.cpp | 18 prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator, 21 case tok::greater: 30 case tok::greatergreater: 42 case tok::comma: return prec::Comma; 43 case tok::equal: 44 case tok::starequal: 45 case tok::slashequal: 46 case tok::percentequal: 47 case tok::plusequal: 48 case tok::minusequal [all...] |
TokenKinds.cpp | 19 #define TOK(X) #X, 25 const char *tok::getTokenName(TokenKind Kind) { 26 if (Kind < tok::NUM_TOKENS) 32 const char *tok::getPunctuatorSpelling(TokenKind Kind) { 41 const char *tok::getKeywordSpelling(TokenKind Kind) {
|
/external/libedit/src/ |
tokenizer.c | 86 private void FUN(tok,finish)(TYPE(Tokenizer) *); 89 /* FUN(tok,finish)(): 93 FUN(tok,finish)(TYPE(Tokenizer) *tok) 96 *tok->wptr = '\0'; 97 if ((tok->flags & TOK_KEEP) || tok->wptr != tok->wstart) { 98 tok->argv[tok->argc++] = tok->wstart [all...] |
/external/clang/lib/Parse/ |
ParseTentative.cpp | 51 switch (Tok.getKind()) { 53 case tok::kw_asm: 55 case tok::kw_namespace: 58 case tok::kw_using: 60 case tok::kw_static_assert: 61 case tok::kw__Static_assert: 148 switch (Tok.getKind()) { 149 case tok::kw__Atomic: 150 if (NextToken().isNot(tok::l_paren)) { 155 case tok::kw_typeof [all...] |
ParseObjc.cpp | 26 void Parser::MaybeSkipAttributes(tok::ObjCKeywordKind Kind) { 28 if (Tok.is(tok::kw___attribute)) { 29 if (Kind == tok::objc_interface || Kind == tok::objc_protocol) 30 Diag(Tok, diag::err_objc_postfix_attribute_hint) 31 << (Kind == tok::objc_protocol); 33 Diag(Tok, diag::err_objc_postfix_attribute); 49 if (Tok.is(tok::code_completion)) [all...] |
ParseExpr.cpp | 150 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, 158 if (Tok.is(tok::code_completion)) { 164 if (Tok.is(tok::kw_throw)) 209 tok::TokenKind K = Tok.getKind(); 210 if (K == tok::l_brace || K == tok::r_brace || 211 K == tok::kw_for || K == tok::kw_while | [all...] |
ParseTemplate.cpp | 33 if (Tok.is(tok::kw_template) && NextToken().isNot(tok::less)) { 64 assert((Tok.is(tok::kw_export) || Tok.is(tok::kw_template)) && 104 TryConsumeToken(tok::kw_export, ExportLoc); 108 if (!TryConsumeToken(tok::kw_template, TemplateLoc)) { 109 Diag(Tok.getLocation(), diag::err_expected_template) [all...] |
ParseDecl.cpp | 126 assert(Tok.is(tok::kw___attribute) && "Not a GNU attribute list!"); 128 while (Tok.is(tok::kw___attribute)) { 130 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, 132 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ; 135 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { 136 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ; 142 if (TryConsumeToken(tok::comma)) 146 if (Tok.isNot(tok::identifier) && !isDeclarationSpecifier() [all...] |
ParseCXXInlineMethods.cpp | 33 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try) || 34 Tok.is(tok::equal)) && 66 if (TryConsumeToken(tok::equal)) { 68 SkipUntil(tok::semi) [all...] |
ParseInit.cpp | 28 switch (Tok.getKind()) { 32 case tok::period: // designator: '.' identifier 35 case tok::l_square: { // designator: array-designator 43 case tok::equal: 44 case tok::r_square: 48 case tok::amp: 49 case tok::kw_this: 50 case tok::identifier: 64 case tok::identifier: // designation: identifier ':' 65 return PP.LookAhead(0).is(tok::colon) [all...] |
/external/clang/lib/Lex/ |
TokenConcatenation.cpp | 48 bool TokenConcatenation::IsIdentifierStringPrefix(const Token &Tok) const { 51 if (!Tok.needsCleaning()) { 52 if (Tok.getLength() < 1 || Tok.getLength() > 3) 55 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); 56 return IsStringPrefix(StringRef(Ptr, Tok.getLength()), 60 if (Tok.getLength() < 256) { 63 unsigned length = PP.getSpelling(Tok, TokPtr); 67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11); 74 TokenInfo[tok::identifier ] |= aci_custom [all...] |
/external/clang/include/clang/Basic/ |
TokenKinds.h | 22 namespace tok { namespace in namespace:clang 26 #define TOK(X) X, 74 return (K == tok::identifier) || (K == tok::raw_identifier); 80 return K == tok::string_literal || K == tok::wide_string_literal || 81 K == tok::utf8_string_literal || K == tok::utf16_string_literal || 82 K == tok::utf32_string_literal; 88 return K == tok::numeric_constant || K == tok::char_constant | [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t027eof.py | 16 tok = lexer.nextToken() 17 assert tok.type == self.lexerModule.SPACE, tok 19 tok = lexer.nextToken() 20 assert tok.type == self.lexerModule.END, tok
|
/external/clang/lib/Format/ |
UnwrappedLineParser.cpp | 101 FormatTok.Tok.startToken(); 102 FormatTok.Tok.setKind(tok::eof); 275 switch (FormatTok->Tok.getKind()) { 276 case tok::comment: 280 case tok::l_brace: 286 case tok::r_brace: 293 case tok::kw_default: 294 case tok::kw_case: 315 FormatToken *Tok = FormatTok [all...] |
FormatToken.h | 118 Token Tok; 161 /// This can be different to Tok.getLocation(), which includes leading escaped 269 bool is(tok::TokenKind Kind) const { return Tok.is(Kind); } 271 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { 275 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3) const { 279 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3 [all...] |
TokenAnnotator.cpp | 38 Contexts.push_back(Context(tok::unknown, 1, /*IsExpression=*/false)); 46 ScopedContextCreator ContextCreator(*this, tok::less, 10); 52 Left->Previous && Left->Previous->Tok.isNot(tok::kw_template); 55 if (CurrentToken->is(tok::greater)) { 62 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, 63 tok::question, tok::colon) [all...] |
/bionic/libc/upstream-openbsd/lib/libc/string/ |
strsep.c | 51 char *tok; local 55 for (tok = s;;) { 65 return (tok);
|
/external/fio/lib/ |
strsep.c | 5 char *s, *tok; local 13 tok = s; 25 return tok;
|
/external/clang/unittests/Lex/ |
LexerTest.cpp | 64 ArrayRef<tok::TokenKind> ExpectedTokens) { 79 Token tok; local 80 PP.Lex(tok); 81 if (tok.is(tok::eof)) 83 toks.push_back(tok); 116 std::vector<tok::TokenKind> ExpectedTokens; 117 ExpectedTokens.push_back(tok::identifier); 118 ExpectedTokens.push_back(tok::l_paren); 119 ExpectedTokens.push_back(tok::identifier) [all...] |
/external/chromium_org/third_party/expat/files/lib/ |
xmlrole.c | 102 int tok, 125 static int FASTCALL common(PROLOG_STATE *state, int tok); 129 int tok, 134 switch (tok) { 161 return common(state, tok); 166 int tok, 171 switch (tok) { 192 return common(state, tok); 197 int tok, 202 switch (tok) { [all...] |
/external/expat/lib/ |
xmlrole.c | 102 int tok, 125 static int FASTCALL common(PROLOG_STATE *state, int tok); 129 int tok, 134 switch (tok) { 161 return common(state, tok); 166 int tok, 171 switch (tok) { 192 return common(state, tok); 197 int tok, 202 switch (tok) { [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/ |
strsep.c | 64 char *tok; 68 for (tok = s;;) { 78 return (tok);
|
/external/harfbuzz_ng/src/ |
hb-buffer-deserialize-json.rl | 51 action tok { 52 tok = p; 57 tok, p - tok, 62 action parse_gid { if (!parse_uint (tok, p, &info.codepoint)) return false; } 63 action parse_cluster { if (!parse_uint (tok, p, &info.cluster )) return false; } 64 action parse_x_offset { if (!parse_int (tok, p, &pos.x_offset )) return false; } 65 action parse_y_offset { if (!parse_int (tok, p, &pos.y_offset )) return false; } 66 action parse_x_advance { if (!parse_int (tok, p, &pos.x_advance)) return false; } 67 action parse_y_advance { if (!parse_int (tok, p, &pos.y_advance)) return false; [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
ServerParser.java | 81 String tok; local 85 tok = this.lexer.getString('/'); 87 if (tok.charAt(tok.length() - 1) == '\n') 88 tok = tok.trim(); 89 server.addProductToken(tok); 92 tok = this.lexer.getRest().trim(); 93 server.addProductToken(tok);
|
/external/clang/unittests/AST/ |
CommentLexer.cpp | 48 StringRef getCommandName(const Token &Tok) { 49 return Traits.getCommandInfo(Tok.getCommandID())->Name; 52 StringRef getVerbatimBlockName(const Token &Tok) { 53 return Traits.getCommandInfo(Tok.getVerbatimBlockID())->Name; 56 StringRef getVerbatimLineName(const Token &Tok) { 57 return Traits.getCommandInfo(Tok.getVerbatimLineID())->Name; 70 Token Tok; 71 L.lex(Tok); 72 if (Tok.is(tok::eof) [all...] |