/external/v8/src/parsing/ |
D | scanner.cc | 99 STATIC_ASSERT(Token::NUM_TOKENS <= 0x100); 103 Token::ILLEGAL, 104 Token::ILLEGAL, 105 Token::ILLEGAL, 106 Token::ILLEGAL, 107 Token::ILLEGAL, 108 Token::ILLEGAL, 109 Token::ILLEGAL, 110 Token::ILLEGAL, 111 Token::ILLEGAL, [all …]
|
D | preparser.cc | 41 if (scanner->current_token() == Token::FUTURE_RESERVED_WORD) { in GetSymbol() 44 Token::FUTURE_STRICT_RESERVED_WORD) { in GetSymbol() 46 } else if (scanner->current_token() == Token::LET) { in GetSymbol() 48 } else if (scanner->current_token() == Token::STATIC) { in GetSymbol() 50 } else if (scanner->current_token() == Token::YIELD) { in GetSymbol() 120 DCHECK_EQ(Token::LBRACE, scanner()->current_token()); in PreParseLazyFunction() 131 DCHECK_EQ(Token::RBRACE, scanner()->peek()); in PreParseLazyFunction() 192 case Token::FUNCTION: in ParseStatementListItem() 194 case Token::CLASS: in ParseStatementListItem() 196 case Token::CONST: in ParseStatementListItem() [all …]
|
D | parser-base.h | 356 INLINE(Token::Value peek()) { in INLINE() 357 if (stack_overflow_) return Token::ILLEGAL; in INLINE() 361 INLINE(Token::Value PeekAhead()) { in INLINE() 362 if (stack_overflow_) return Token::ILLEGAL; in INLINE() 366 INLINE(Token::Value Next()) { in INLINE() 367 if (stack_overflow_) return Token::ILLEGAL; in INLINE() 379 void Consume(Token::Value token) { in Consume() 380 Token::Value next = Next(); in Consume() 386 bool Check(Token::Value token) { in Check() 387 Token::Value next = peek(); in Check() [all …]
|
/external/v8/src/ic/ |
D | ic-state.cc | 39 static_cast<Token::Value>(FIRST_TOKEN + OpField::decode(extra_ic_state)); in BinaryOpICState() 82 GENERATE(Token::ADD, INT32, INT32, INT32); in GenerateAheadOfTime() 83 GENERATE(Token::ADD, INT32, INT32, NUMBER); in GenerateAheadOfTime() 84 GENERATE(Token::ADD, INT32, NUMBER, NUMBER); in GenerateAheadOfTime() 85 GENERATE(Token::ADD, INT32, SMI, INT32); in GenerateAheadOfTime() 86 GENERATE(Token::ADD, NUMBER, INT32, NUMBER); in GenerateAheadOfTime() 87 GENERATE(Token::ADD, NUMBER, NUMBER, NUMBER); in GenerateAheadOfTime() 88 GENERATE(Token::ADD, NUMBER, SMI, NUMBER); in GenerateAheadOfTime() 89 GENERATE(Token::ADD, SMI, INT32, INT32); in GenerateAheadOfTime() 90 GENERATE(Token::ADD, SMI, INT32, NUMBER); in GenerateAheadOfTime() [all …]
|
/external/deqp/framework/randomshaders/ |
D | rsgToken.hpp | 33 class Token class 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); 135 ~Token (void); 140 bool operator== (const Token& other) const; [all …]
|
D | rsgVariable.cpp | 50 case STORAGE_CONST: str << Token::CONST; break; in tokenizeDeclaration() 51 case STORAGE_PARAMETER_IN: str << Token::IN; break; in tokenizeDeclaration() 52 case STORAGE_PARAMETER_OUT: str << Token::OUT; break; in tokenizeDeclaration() 53 case STORAGE_PARAMETER_INOUT: str << Token::INOUT; break; in tokenizeDeclaration() 57 str << Token::UNIFORM; in tokenizeDeclaration() 59 str << Token::MEDIUM_PRECISION; in tokenizeDeclaration() 68 …str << Token::LAYOUT << Token::LEFT_PAREN << Token::LOCATION << Token::EQUAL << m_layoutLocation <… in tokenizeDeclaration() 70 str << Token::IN; in tokenizeDeclaration() 73 str << Token::MEDIUM_PRECISION; in tokenizeDeclaration() 81 case Shader::TYPE_VERTEX: str << Token::ATTRIBUTE; break; in tokenizeDeclaration() [all …]
|
D | rsgVariableType.cpp | 208 case PRECISION_LOW: str << Token::LOW_PRECISION; break; in tokenizeShortType() 209 case PRECISION_MEDIUM: str << Token::MEDIUM_PRECISION; break; in tokenizeShortType() 210 case PRECISION_HIGH: str << Token::HIGH_PRECISION; break; in tokenizeShortType() 217 str << Token::VOID; in tokenizeShortType() 223 case 1: str << Token::FLOAT; break; in tokenizeShortType() 224 case 2: str << Token::VEC2; break; in tokenizeShortType() 225 case 3: str << Token::VEC3; break; in tokenizeShortType() 226 case 4: str << Token::VEC4; break; in tokenizeShortType() 234 case 1: str << Token::INT; break; in tokenizeShortType() 235 case 2: str << Token::IVEC2; break; in tokenizeShortType() [all …]
|
D | rsgToken.cpp | 31 Token::Token (const char* identifier) in Token() function in rsg::Token 39 Token::~Token (void) in ~Token() 45 Token& Token::operator= (const Token& other) in operator =() 71 Token::Token (const Token& other) in Token() function in rsg::Token 77 bool Token::operator!= (const Token& other) const in operator !=()
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | CommonTree.cs | 75 this.Token = node.Token; in CommonTree() 82 this.Token = t; in CommonTree() 91 if ( Token == null || Token.CharPositionInLine == -1 ) 98 return Token.CharPositionInLine; 124 return Token == null; 132 if ( Token == null || Token.Line == 0 ) 140 return Token.Line; 166 if ( Token == null ) 169 return Token.Text; 177 public IToken Token property in Antlr.Runtime.Tree.CommonTree [all …]
|
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/lexer/ |
D | Lexer.java | 11 protected Token token; 32 public Token peek() throws LexerException, IOException in peek() 43 public Token next() throws LexerException, IOException in next() 51 Token result = this.token; in next() 56 protected Token getToken() throws IOException, LexerException in getToken() 160 @SuppressWarnings("hiding") Token token = new0( in getToken() 175 @SuppressWarnings("hiding") Token token = new1( in getToken() 190 @SuppressWarnings("hiding") Token token = new2( in getToken() 204 @SuppressWarnings("hiding") Token token = new3( in getToken() 218 @SuppressWarnings("hiding") Token token = new4( in getToken() [all …]
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/parser/ |
D | ParserImpl.java | 50 import org.yaml.snakeyaml.tokens.Token; 194 … if (!scanner.checkToken(Token.ID.Directive, Token.ID.DocumentStart, Token.ID.StreamEnd)) { in produce() 196 Token token = scanner.peekToken(); in produce() 214 while (scanner.checkToken(Token.ID.DocumentEnd)) { in produce() 219 if (!scanner.checkToken(Token.ID.StreamEnd)) { in produce() 220 Token token = scanner.peekToken(); in produce() 223 if (!scanner.checkToken(Token.ID.DocumentStart)) { in produce() 252 Token token = scanner.peekToken(); in produce() 256 if (scanner.checkToken(Token.ID.DocumentEnd)) { in produce() 271 if (scanner.checkToken(Token.ID.Directive, Token.ID.DocumentStart, in produce() [all …]
|
/external/llvm/lib/CodeGen/MIRParser/ |
D | MIParser.cpp | 62 MIToken Token; member in __anoncb343b890111::MIParser 255 CurrentSource, Token, in lex() 259 bool MIParser::error(const Twine &Msg) { return error(Token.location(), Msg); } in error() 295 if (Token.isNot(TokenKind)) in expectAndConsume() 302 if (Token.isNot(TokenKind)) in consumeIfPresent() 310 assert(Token.is(MIToken::MachineBasicBlockLabel)); in parseBasicBlockDefinition() 314 auto Loc = Token.location(); in parseBasicBlockDefinition() 315 auto Name = Token.stringValue(); in parseBasicBlockDefinition() 324 switch (Token.kind()) { in parseBasicBlockDefinition() 379 while (Token.is(MIToken::Newline)) in parseBasicBlockDefinitions() [all …]
|
D | MILexer.cpp | 153 Cursor C, MIToken &Token, MIToken::TokenKind Type, unsigned PrefixLength, in lexName() argument 160 Token.reset(Type, String) in lexName() 165 Token.reset(MIToken::Error, Range.remaining()); in lexName() 170 Token.reset(Type, Range.upto(C)) in lexName() 175 static Cursor maybeLexIntegerType(Cursor C, MIToken &Token) { in maybeLexIntegerType() argument 182 Token.reset(MIToken::IntegerType, Range.upto(C)); in maybeLexIntegerType() 232 static Cursor maybeLexIdentifier(Cursor C, MIToken &Token) { in maybeLexIdentifier() argument 239 Token.reset(getIdentifierKind(Identifier), Identifier) in maybeLexIdentifier() 245 Cursor C, MIToken &Token, in maybeLexMachineBasicBlock() argument 254 Token.reset(MIToken::Error, C.remaining()); in maybeLexMachineBasicBlock() [all …]
|
/external/llvm/lib/Support/ |
D | YAMLParser.cpp | 111 struct Token : ilist_node<Token> { struct 145 Token() : Kind(TK_Error) {} in Token() argument 152 struct ilist_sentinel_traits<Token> { 153 Token *createSentinel() const { in createSentinel() 156 static void destroySentinel(Token*) {} in destroySentinel() 158 Token *provideInitialHead() const { return createSentinel(); } in provideInitialHead() 159 Token *ensureHead(Token*) const { return createSentinel(); } in ensureHead() 160 static void noteHead(Token*, Token*) {} in noteHead() 163 mutable Token Sentinel; 167 struct ilist_node_traits<Token> { [all …]
|
/external/emma/core/java12/com/vladium/util/args/ |
D | OptsParser.java | 1050 while (m_token != Token.EOF) in parse() 1077 accept (Token.COLON_ID); in optdef() 1079 accept (Token.SEMICOLON_ID); in optdef() 1093 case Token.REQUIRED_ID: in optmetadata() 1100 case Token.OPTIONAL_ID: in optmetadata() 1108 …n ("parse error: invalid token " + m_token + ", expected " + Token.REQUIRED + " or " + Token.OPTIO… in optmetadata() 1112 accept (Token.COMMA_ID); in optmetadata() 1114 if (m_token.getID () == Token.MERGEABLE_ID) in optmetadata() 1119 accept (Token.COMMA_ID); in optmetadata() 1122 if (m_token.getID () == Token.DETAILEDONLY_ID) in optmetadata() [all …]
|
/external/snakeyaml/src/test/java/org/pyyaml/ |
D | CanonicalParser.java | 38 import org.yaml.snakeyaml.tokens.Token; 53 scanner.getToken(Token.ID.StreamStart); in parseStream() 55 while (!scanner.checkToken(Token.ID.StreamEnd)) { in parseStream() 56 if (scanner.checkToken(Token.ID.Directive, Token.ID.DocumentStart)) { in parseStream() 62 scanner.getToken(Token.ID.StreamEnd); in parseStream() 68 if (scanner.checkToken(Token.ID.Directive)) { in parseDocument() 69 scanner.getToken(Token.ID.Directive); in parseDocument() 71 scanner.getToken(Token.ID.DocumentStart); in parseDocument() 79 if (scanner.checkToken(Token.ID.Alias)) { in parseNode() 84 if (scanner.checkToken(Token.ID.Anchor)) { in parseNode() [all …]
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/token/ |
D | ANTLRCommonTokenTest.m | 18 STAssertNotNil(token, @"Token was nil"); 25 STAssertNotNil(token, @"Token was nil"); 26 …STAssertEquals(token.type, (NSInteger)ANTLRTokenTypeEOF, @"Token was not of type ANTLRTokenTypeEOF… 34 STAssertNotNil(token, @"Token was nil"); 35 STAssertEquals(token.type, (NSInteger)ANTLRTokenTypeUP, @"Token was not of type ANTLRTokenTypeUP"); 36 STAssertNotNil(token.text, @"Token text was nil, was expecting <UP>"); 37 …STAssertTrue([token.text isEqualToString:@"<UP>"], @"Token text was not <UP> was instead: %@", tok… 44 STAssertNotNil(token, @"Token was nil"); 45 STAssertEquals(token.type, (NSInteger)ANTLRTokenTypeUP, @"Token was not of type ANTLRTokenTypeUP"); 46 STAssertNotNil(token.text, @"Token text was nil, was expecting <UP>"); [all …]
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/ |
D | parser.ml | 21 | [< 'Token.Number n >] -> Ast.Number n 24 | [< 'Token.Kwd '('; e=parse_expr; 'Token.Kwd ')' ?? "expected ')'" >] -> e 29 | [< 'Token.Ident id; stream >] -> 33 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e 40 | [< 'Token.Kwd '('; 42 'Token.Kwd ')' ?? "expected ')'">] -> 51 | [< 'Token.If; c=parse_expr; 52 'Token.Then ?? "expected 'then'"; t=parse_expr; 53 'Token.Else ?? "expected 'else'"; e=parse_expr >] -> 58 | [< 'Token.For; [all …]
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/ |
D | parser.ml | 20 | [< 'Token.Number n >] -> Ast.Number n 23 | [< 'Token.Kwd '('; e=parse_expr; 'Token.Kwd ')' ?? "expected ')'" >] -> e 28 | [< 'Token.Ident id; stream >] -> 32 | [< 'Token.Kwd ','; e=parse_args (e :: accumulator) >] -> e 39 | [< 'Token.Kwd '('; 41 'Token.Kwd ')' ?? "expected ')'">] -> 50 | [< 'Token.If; c=parse_expr; 51 'Token.Then ?? "expected 'then'"; t=parse_expr; 52 'Token.Else ?? "expected 'else'"; e=parse_expr >] -> 57 | [< 'Token.For; [all …]
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 139 bool Lex(Token &Result); 148 void IndirectLex(Token &Result) override { Lex(Result); } in IndirectLex() 154 bool LexFromRawLexer(Token &Result) { in LexFromRawLexer() 248 static unsigned getSpelling(const Token &Tok, const char *&Buffer, 258 static std::string getSpelling(const Token &Tok, 287 static bool getRawToken(SourceLocation Loc, Token &Result, 468 bool LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine); 470 bool CheckUnicodeWhitespace(Token &Result, uint32_t C, const char *CurPtr); 475 bool LexUnicode(Token &Result, uint32_t C, const char *CurPtr); 482 void FormTokenWithChars(Token &Result, const char *TokEnd, in FormTokenWithChars() [all …]
|
D | TokenLexer.h | 22 class Token; variable 51 const Token *Tokens; 109 TokenLexer(Token &Tok, SourceLocation ILEnd, MacroInfo *MI, in TokenLexer() 119 void Init(Token &Tok, SourceLocation ILEnd, MacroInfo *MI, 125 TokenLexer(const Token *TokArray, unsigned NumToks, bool DisableExpansion, in TokenLexer() 136 void Init(const Token *TokArray, unsigned NumToks, 147 bool Lex(Token &Tok); 167 bool PasteTokens(Token &Tok); 178 void HandleMicrosoftCommentPaste(Token &Tok); 191 Token *begin_tokens, Token *end_tokens); [all …]
|
D | Preprocessor.h | 77 bool operator==(const Token &Tok) const { 364 Token Tok; 367 MacroExpandsInfo(Token Tok, MacroDefinition MD, SourceRange Range) in MacroExpandsInfo() 597 SmallVector<Token, 16> MacroExpandedTokens; 608 typedef SmallVector<Token, 1> CachedTokensTy; 1008 void EnterMacro(Token &Identifier, SourceLocation ILEnd, MacroInfo *Macro, 1022 void EnterTokenStream(const Token *Toks, unsigned NumToks, 1058 void Lex(Token &Result); 1060 void LexAfterModuleImport(Token &Result); 1071 bool LexStringLiteral(Token &Result, std::string &String, in LexStringLiteral() [all …]
|
D | MacroArgs.h | 24 class Token; variable 46 std::vector<std::vector<Token> > PreExpArgTokens; 50 std::vector<Token> StringifiedArgs; 65 ArrayRef<Token> UnexpArgTokens, 74 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const; 79 const Token *getUnexpArgument(unsigned Arg) const; 84 static unsigned getArgLength(const Token *ArgPtr); 88 const std::vector<Token> & 93 const Token &getStringifiedArgument(unsigned ArgNo, Preprocessor &PP, 114 static Token StringifyArgument(const Token *ArgToks,
|
/external/jsoncpp/include/json/ |
D | reader.h | 174 class Token { 183 Token token_; 190 bool expectToken(TokenType type, Token& token, const char* message); 191 bool readToken(Token& token); 200 bool readObject(Token& token); 201 bool readArray(Token& token); 202 bool decodeNumber(Token& token); 203 bool decodeNumber(Token& token, Value& decoded); 204 bool decodeString(Token& token); 205 bool decodeString(Token& token, std::string& decoded); [all …]
|
/external/clang/lib/Parse/ |
D | ParsePragma.cpp | 30 Token &FirstToken) override; 36 Token &FirstToken) override; 42 Token &FirstToken) override; 48 Token &FirstToken) override; 54 Token &FirstToken) override; 60 Token &FirstToken) override; 66 Token &FirstToken) override; 72 Token &FirstToken) override; 78 Token &FirstToken) override; 85 Token &FirstToken) override; [all …]
|