/external/llvm/examples/Kaleidoscope/Chapter3/ |
toy.cpp | 20 enum Token { 35 /// gettok - Return the next token from standard input. 170 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 171 /// token the parser is looking at. getNextToken reads another token from the 180 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 268 return Error("unknown token when expecting an expression"); 510 // Skip token for error recovery. 522 // Skip token for error recovery. 535 // Skip token for error recovery [all...] |
/external/llvm/examples/Kaleidoscope/Chapter4/ |
toy.cpp | 26 enum Token { 41 /// gettok - Return the next token from standard input. 176 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 177 /// token the parser is looking at. getNextToken reads another token from the 186 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 274 return Error("unknown token when expecting an expression"); 558 // Skip token for error recovery. 571 // Skip token for error recovery. 599 // Skip token for error recovery [all...] |
/external/llvm/include/llvm/IR/ |
Statepoint.h | 324 const Value *Token = RelocateCS.getArgument(0); 326 return isa<ExtractValueInst>(Token) || isa<InvokeInst>(Token); 334 const Value *Token = RelocateCS.getArgument(0); 338 if (!isa<ExtractValueInst>(Token)) { 339 return cast<Instruction>(Token); 344 cast<Instruction>(Token)->getParent()->getUniquePredecessor();
|
/external/llvm/lib/AsmParser/ |
LLParser.cpp | 927 lltok::Kind Token = Lex.getKind(); 928 if (Token == lltok::kw_builtin) 930 switch (Token) { [all...] |
/external/protobuf/gtest/scripts/ |
pump.py | 138 class Token: 139 """Represents a token in a Pump source file.""" 154 return 'Token @%s: \'%s\' type=%s' % ( 160 return Token(self.start.Clone(), self.end.Clone(), self.value, 228 """Creates a new instance of Token.""" 230 return Token(start, end, SubString(lines, start, end), token_type) 293 def RStripNewLineFromToken(token): 294 if token.value.endswith('\n'): 295 return Token(token.start, token.end, token.value[:-1], token.token_type [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
pointer.h | 23 static const SizeType kPointerInvalidIndex = ~SizeType(0); //!< Represents an invalid index in GenericPointer::Token 32 kPointerParseErrorTokenMustBeginWithSolidus, //!< A token must begin with a '/' 76 //! A token is the basic units of internal representation. 82 For token that are not numbers, or the numeric value is out of bound 84 (i.e. the token's index will be equal to kPointerInvalidIndex). 89 struct Token { 90 const Ch* name; //!< Name of the token. It has null character at the end but it can contain null character. 147 static const Pointer::Token kTokens[] = { NAME("foo"), INDEX(123) }; 155 GenericPointer(const Token* tokens, size_t tokenCount) : allocator_(), ownAllocator_(), nameBuffer_(), tokens_(const_cast<Token*>(tokens)), tokenCount_(tokenCount), parseErrorOffset_(), parseErrorCode_(kPointerParseErrorNone) (…) 220 Token token = { name, length, kPointerInvalidIndex }; local 260 Token token = { (Ch*)buffer, length, index }; local 267 Token token = { name, length, index }; local 782 Token* token = tokens_ = static_cast<Token *>(allocator_->Malloc(tokenCount_ * sizeof(Token) + length * sizeof(Ch))); local [all...] |
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
debug.py | 32 from antlr3 import Parser, TokenStream, RecognitionException, Token 37 # wrap token stream in DebugTokenStream (unless user already did so). 98 # force TokenStream to get at least first valid token 123 # then we consumed more than one token; must be off channel tokens 222 # could be token conjured up during error recovery 283 if isinstance(child, Token): 295 if isinstance(newRoot, Token): 466 """An input token was consumed; matched by any kind of element. 467 Trigger after the token was matched by things like match(), matchAny(). 473 """An off-channel input token was consumed [all...] |
tree.py | 46 from antlr3.tokens import CommonToken, Token, INVALID_TOKEN 108 even use Token objects as trees if you add a child list to your tokens. 134 """Walk upwards looking for ancestor with this token type.""" 139 """Walk upwards and get first ancestor with this token type.""" 211 What is the smallest token index (indexing from 0) for this node 224 What is the largest token index (indexing from 0) for this node 240 """Return a token type; needed for tree parsing.""" 251 In case we don't have a token payload, what is the line for errors? 288 Create a tree node from Token object; for CommonTree type trees, 289 then the token just becomes the payload. This is the mos [all...] |
/external/clang/lib/ASTMatchers/Dynamic/ |
Parser.cpp | 28 /// \brief Simple structure to hold information for one token from the parser. 73 /// \brief Returns but doesn't consume the next token. 76 /// \brief Consumes and returns the next token. 145 // location to become a code completion token. 356 // We must find a , token to continue. 437 // If the prefix of this completion matches the completion token, add it to 514 const TokenInfo Token = Tokenizer->consumeNextToken(); 515 Error->addError(Token.Range, Error->ET_ParserInvalidToken) << Token.Text; 519 llvm_unreachable("Unknown token kind.") [all...] |
/external/deqp/framework/randomshaders/ |
rsgToken.hpp | 23 * \brief Token class. 33 class Token 127 Token (void); 128 Token (Type type); 129 Token (const char* identifier); 130 Token (float value); 131 Token (int value); 132 Token (bool value); 133 Token (const Token& other) [all...] |
/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 26 enum Token { 48 /// gettok - Return the next token from standard input. 218 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 219 /// token the parser is looking at. getNextToken reads another token from the 228 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 394 return Error("unknown token when expecting an expression"); 832 // Skip token for error recovery. 845 // Skip token for error recovery. 873 // Skip token for error recovery [all...] |
/external/llvm/lib/Target/X86/AsmParser/ |
X86Operand.h | 27 Token, 75 /// getStartLoc - Get the location of the first token of this operand. 77 /// getEndLoc - Get the location of the last token of this operand. 79 /// getLocRange - Get the range between the first and last token of this 88 assert(Kind == Token && "Invalid access!"); 92 assert(Kind == Token && "Invalid access!"); 132 bool isToken() const override {return Kind == Token; } 468 auto Res = llvm::make_unique<X86Operand>(Token, Loc, EndLoc);
|
/external/llvm/lib/Transforms/Scalar/ |
PlaceSafepoints.cpp | [all...] |
/external/mesa3d/src/gallium/drivers/i915/ |
i915_fpc.h | 310 struct tgsi_token Token;
|
/external/opencv3/3rdparty/jinja2/ |
lexer.py | 102 # bind operators to token types 164 def describe_token(token): 165 """Returns a description of the token.""" 166 if token.type == 'name': 167 return token.value 168 return _describe_token_type(token.type) 172 """Like `describe_token` but for token expressions.""" 225 class Token(tuple): 226 """Token class.""" 241 """Test a token against a token expression. This can either be [all...] |
/external/vulkan-validation-layers/tests/gtest-1.7.0/scripts/ |
pump.py | 137 class Token: 138 """Represents a token in a Pump source file.""" 153 return 'Token @%s: \'%s\' type=%s' % ( 159 return Token(self.start.Clone(), self.end.Clone(), self.value, 238 """Creates a new instance of Token.""" 240 return Token(start, end, SubString(lines, start, end), token_type) 303 def RStripNewLineFromToken(token): 304 if token.value.endswith('\n'): 305 return Token(token.start, token.end, token.value[:-1], token.token_type [all...] |
/bionic/libc/kernel/tools/ |
cpp.py | 90 class Token(clang.cindex.Token): 91 """A class that represents one token after parsing. 94 new spelling of the token. The spelling property in the base class is 100 in libclang always queries based on a single token, which usually doesn't 108 clang.cindex.Token.__init__(self) 121 """Name of the token.""" 129 """Setting name of the token.""" 135 self._cursor = clang.cindex.Token.cursor 207 updates the cursor property in each token after parsing, by callin 646 def token(self): member in class:CppExpr [all...] |
/device/generic/goldfish/gps/ |
gps_qemu.c | 61 } Token; 67 Token tokens[ MAX_NMEA_TOKENS ]; 114 static Token 117 Token tok; 249 nmea_reader_update_time( NmeaReader* r, Token tok ) 286 nmea_reader_update_date( NmeaReader* r, Token date, Token time ) 288 Token tok = date; 313 convert_from_hhmm( Token tok ) 325 Token latitude [all...] |
/external/clang/lib/Format/ |
UnwrappedLineParser.cpp | 64 Token(nullptr) { 72 ResetToken = Token; 79 // \c getNextToken() after it has encountered the first eof token. 81 Token = PreviousTokenSource->getNextToken(); 84 return Token; 90 Token = PreviousTokenSource->setPosition(Position); 91 return Token; 95 bool eof() { return Token && Token->HasUnescapedNewline; } 114 FormatToken *Token; [all...] |
/external/llvm/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 26 enum Token { 52 /// gettok - Return the next token from standard input. 251 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 252 /// token the parser is looking at. getNextToken reads another token from the 261 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 427 return Error("unknown token when expecting an expression"); 445 // If the current token is not an operator, it must be a primary expr. 950 // Skip token for error recovery. 963 // Skip token for error recovery [all...] |
/external/llvm/examples/Kaleidoscope/Chapter7/ |
toy.cpp | 26 enum Token { 55 /// gettok - Return the next token from standard input. 270 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 271 /// token the parser is looking at. getNextToken reads another token from the 280 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 495 return Error("unknown token when expecting an expression"); 515 // If the current token is not an operator, it must be a primary expr. 1116 // Skip token for error recovery. 1129 // Skip token for error recovery [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
toy-jit.cpp | 43 enum Token { 66 /// gettok - Return the next token from standard input. 254 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 255 /// token the parser is looking at. getNextToken reads another token from the 266 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 459 default: return Error("unknown token when expecting an expression"); 473 // If the current token is not an operator, it must be a primary expr. 1039 // Skip token for error recovery. 1053 // Skip token for error recovery [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
toy-jit.cpp | 28 enum Token { 51 /// gettok - Return the next token from standard input. 239 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 240 /// token the parser is looking at. getNextToken reads another token from the 251 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 444 default: return Error("unknown token when expecting an expression"); 458 // If the current token is not an operator, it must be a primary expr. 1021 // Skip token for error recovery. 1035 // Skip token for error recovery [all...] |
/external/llvm/lib/Target/Sparc/AsmParser/ |
SparcAsmParser.cpp | 178 struct Token { 199 struct Token Tok; 258 /// getStartLoc - Get the location of the first token of this operand. 262 /// getEndLoc - Get the location of the last token of this operand. 269 case k_Token: OS << "Token: " << getToken() << "\n"; break; 596 return Error(Loc, "unexpected token"); 602 return Error(Loc, "unexpected token"); 611 return Error(Loc, "unexpected token"); 618 return Error(Loc, "unexpected token"); 668 return Error(L, "unexpected token in directive") [all...] |
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
CalculatorExpr.java | 42 * A token may also represent the result of a previously evaluated expression. 43 * The add() method adds a token to the end of the expression. The delete method() removes one. 53 private ArrayList<Token> mExpr; // The actual representation 62 private static abstract class Token { 71 * Return a textual representation of the token. 80 * Representation of an operator token 82 private static class Operator extends Token { 115 private static class Constant extends Token implements Cloneable { 295 * The "token" class for previously evaluated subexpressions. 304 private static class PreEval extends Token { [all...] |