/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_lexer.l | 32 #define TOKEN(t) (ir3_yylval.tok = t) macro 99 "@localsize" return TOKEN(T_A_LOCALSIZE); 100 "@const" return TOKEN(T_A_CONST); 101 "@buf" return TOKEN(T_A_BUF); 102 "@invocationid" return TOKEN(T_A_INVOCATIONID); 103 "@wgid" return TOKEN(T_A_WGID); 104 "@numwg" return TOKEN(T_A_NUMWG); 105 "@branchstack" return TOKEN(T_A_BRANCHSTACK); 106 "@in" return TOKEN(T_A_IN); 107 "@out" return TOKEN(T_A_OUT); [all …]
|
D | ir3_parser.y | 318 %token <num> T_INT 319 %token <unum> T_HEX 320 %token <flt> T_FLOAT 321 %token <str> T_IDENTIFIER 322 %token <num> T_REGISTER 323 %token <num> T_CONSTANT 326 %token <tok> T_A_LOCALSIZE 327 %token <tok> T_A_CONST 328 %token <tok> T_A_BUF 329 %token <tok> T_A_INVOCATIONID [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | token.cc | 15 #include "src/reader/wgsl/token.h" 22 std::string Token::TypeToName(Type type) { in TypeToName() 24 case Token::Type::kError: in TypeToName() 26 case Token::Type::kEOF: in TypeToName() 28 case Token::Type::kIdentifier: in TypeToName() 30 case Token::Type::kFloatLiteral: in TypeToName() 32 case Token::Type::kSintLiteral: in TypeToName() 34 case Token::Type::kUintLiteral: in TypeToName() 36 case Token::Type::kUninitialized: in TypeToName() 39 case Token::Type::kAnd: in TypeToName() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/ |
D | DirectiveParser.cpp | 26 #include "Token.h" 49 static DirectiveType getDirective(const pp::Token *token) in getDirective() argument 65 if (token->type != pp::Token::IDENTIFIER) in getDirective() 68 if (token->text == kDirectiveDefine) in getDirective() 70 else if (token->text == kDirectiveUndef) in getDirective() 72 else if (token->text == kDirectiveIf) in getDirective() 74 else if (token->text == kDirectiveIfdef) in getDirective() 76 else if (token->text == kDirectiveIfndef) in getDirective() 78 else if (token->text == kDirectiveElse) in getDirective() 80 else if (token->text == kDirectiveElif) in getDirective() [all …]
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | expression.c | 39 #include "token.h" 63 static struct token *comma_expression(struct token *, struct expression **); 65 struct token *parens_expression(struct token *token, struct expression **expr, const char *where) in parens_expression() argument 67 struct token *p; in parens_expression() 69 token = expect(token, '(', where); in parens_expression() 70 p = token; in parens_expression() 71 if (match_op(token, '{')) { in parens_expression() 72 struct expression *e = alloc_expression(token->pos, EXPR_STATEMENT); in parens_expression() 73 struct statement *stmt = alloc_statement(token->pos, STMT_COMPOUND); in parens_expression() 77 token = compound_statement(token->next, stmt); in parens_expression() [all …]
|
D | parse.c | 40 #include "token.h" 51 static struct token *statement(struct token *token, struct statement **tree); 52 static struct token *handle_attributes(struct token *token, struct decl_state *ctx); 54 typedef struct token *declarator_t(struct token *, struct symbol *, struct decl_state *); 62 static struct token *parse_if_statement(struct token *token, struct statement *stmt); 63 static struct token *parse_return_statement(struct token *token, struct statement *stmt); 64 static struct token *parse_loop_iterator(struct token *token, struct statement *stmt); 65 static struct token *parse_default_statement(struct token *token, struct statement *stmt); 66 static struct token *parse_case_statement(struct token *token, struct statement *stmt); 67 static struct token *parse_switch_statement(struct token *token, struct statement *stmt); [all …]
|
D | pre-process.c | 2 * Do C preprocessing, based on a token list gathered by 42 #include "token.h" 94 static struct token *alloc_token(struct position *pos) in alloc_token() 96 struct token *token = __alloc_token(0); in alloc_token() local 98 token->pos.stream = pos->stream; in alloc_token() 99 token->pos.line = pos->line; in alloc_token() 100 token->pos.pos = pos->pos; in alloc_token() 101 token->pos.whitespace = 1; in alloc_token() 102 return token; in alloc_token() 106 static int expand(struct token **, struct symbol *); [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
D | DirectiveParser.cpp | 19 #include "compiler/preprocessor/Token.h" 45 DirectiveType getDirective(const pp::Token *token) in getDirective() argument 61 if (token->type != pp::Token::IDENTIFIER) in getDirective() 64 if (token->text == kDirectiveDefine) in getDirective() 66 if (token->text == kDirectiveUndef) in getDirective() 68 if (token->text == kDirectiveIf) in getDirective() 70 if (token->text == kDirectiveIfdef) in getDirective() 72 if (token->text == kDirectiveIfndef) in getDirective() 74 if (token->text == kDirectiveElse) in getDirective() 76 if (token->text == kDirectiveElif) in getDirective() [all …]
|
/third_party/rust/crates/serde/test_suite/tests/ |
D | test_de.rs | 36 use serde_test::{assert_de_tokens, Configure, Token}; 151 fn test<'de, T>(value: T, tokens: &'de [Token]) in test() 184 fn assert_de_tokens_ignore(ignorable_tokens: &[Token]) { in assert_de_tokens_ignore() argument 190 // Embed the tokens to be ignored in the normal token in assert_de_tokens_ignore() 192 let concated_tokens: Vec<Token> = vec![ in assert_de_tokens_ignore() 193 Token::Map { len: Some(2) }, in assert_de_tokens_ignore() 194 Token::Str("a"), in assert_de_tokens_ignore() 195 Token::I32(1), in assert_de_tokens_ignore() 196 Token::Str("ignored"), in assert_de_tokens_ignore() 200 .chain(vec![Token::MapEnd].into_iter()) in assert_de_tokens_ignore() [all …]
|
D | test_macros.rs | 12 assert_de_tokens, assert_de_tokens_error, assert_ser_tokens, assert_tokens, Token, 117 assert_tokens(&NamedUnit, &[Token::UnitStruct { name: "NamedUnit" }]); in test_named_unit() 128 Token::TupleStruct { in test_ser_named_tuple() 132 Token::I32(5), in test_ser_named_tuple() 133 Token::I32(6), in test_ser_named_tuple() 134 Token::I32(7), in test_ser_named_tuple() 135 Token::TupleStructEnd, in test_ser_named_tuple() 145 Token::Seq { len: Some(3) }, in test_de_named_tuple() 146 Token::I32(5), in test_de_named_tuple() 147 Token::I32(6), in test_de_named_tuple() [all …]
|
D | test_annotations.rs | 20 assert_tokens, Token, 162 Token::Struct { in test_default_struct() 166 Token::Str("a1"), in test_default_struct() 167 Token::I32(1), in test_default_struct() 168 Token::Str("a2"), in test_default_struct() 169 Token::I32(2), in test_default_struct() 170 Token::Str("a3"), in test_default_struct() 171 Token::I32(3), in test_default_struct() 172 Token::Str("a4"), in test_default_struct() 173 Token::I32(4), in test_default_struct() [all …]
|
D | test_ser.rs | 26 use serde_test::{assert_ser_tokens, assert_ser_tokens_error, Configure, Token}; 76 assert_ser_tokens(&(), &[Token::Unit]); in test_unit() 81 assert_ser_tokens(&true, &[Token::Bool(true)]); in test_bool() 82 assert_ser_tokens(&false, &[Token::Bool(false)]); in test_bool() 87 assert_ser_tokens(&0i8, &[Token::I8(0)]); in test_isizes() 88 assert_ser_tokens(&0i16, &[Token::I16(0)]); in test_isizes() 89 assert_ser_tokens(&0i32, &[Token::I32(0)]); in test_isizes() 90 assert_ser_tokens(&0i64, &[Token::I64(0)]); in test_isizes() 95 assert_ser_tokens(&0u8, &[Token::U8(0)]); in test_usizes() 96 assert_ser_tokens(&0u16, &[Token::U16(0)]); in test_usizes() [all …]
|
D | test_de_error.rs | 6 use serde_test::{assert_de_tokens_error, Token}; 73 &[Token::I16(-129)], in test_i8() 77 &[Token::I32(-129)], in test_i8() 81 &[Token::I64(-129)], in test_i8() 85 &[Token::I16(128)], in test_i8() 89 &[Token::I32(128)], in test_i8() 93 &[Token::I64(128)], in test_i8() 99 &[Token::U8(128)], in test_i8() 103 &[Token::U16(128)], in test_i8() 107 &[Token::U32(128)], in test_i8() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
D | DirectiveParser.cpp | 19 #include "compiler/preprocessor/Token.h" 45 DirectiveType getDirective(const pp::Token *token) in getDirective() argument 61 if (token->type != pp::Token::IDENTIFIER) in getDirective() 64 if (token->text == kDirectiveDefine) in getDirective() 66 if (token->text == kDirectiveUndef) in getDirective() 68 if (token->text == kDirectiveIf) in getDirective() 70 if (token->text == kDirectiveIfdef) in getDirective() 72 if (token->text == kDirectiveIfndef) in getDirective() 74 if (token->text == kDirectiveElse) in getDirective() 76 if (token->text == kDirectiveElif) in getDirective() [all …]
|
/third_party/vk-gl-cts/external/amber/src/src/amberscript/ |
D | parser.cc | 207 for (auto token = tokenizer->NextToken();; token = tokenizer->NextToken()) { in ParseBufferData() local 208 if (token->IsEOL()) in ParseBufferData() 210 if (token->IsEOS()) { in ParseBufferData() 217 if (token->IsIdentifier() && token->AsString() == "END") in ParseBufferData() 219 if (!token->IsInteger() && !token->IsDouble() && !token->IsHex()) in ParseBufferData() 220 return Result("invalid BUFFER data value: " + token->ToOriginalString()); in ParseBufferData() 230 token->ConvertToDouble(); in ParseBufferData() 232 double val = token->IsHex() ? static_cast<double>(token->AsHex()) in ParseBufferData() 233 : token->AsDouble(); in ParseBufferData() 237 if (token->IsDouble()) { in ParseBufferData() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/ |
D | token_test.cpp | 9 #include "compiler/preprocessor/Token.h" 16 pp::Token token; in TEST() local 17 EXPECT_EQ(0, token.type); in TEST() 18 EXPECT_EQ(0u, token.flags); in TEST() 19 EXPECT_EQ(0, token.location.line); in TEST() 20 EXPECT_EQ(0, token.location.file); in TEST() 21 EXPECT_EQ("", token.text); in TEST() 26 pp::Token token; in TEST() local 27 token.type = 1; in TEST() 28 token.flags = 1; in TEST() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/preprocessor_tests/ |
D | token_test.cpp | 9 #include "compiler/preprocessor/Token.h" 16 pp::Token token; in TEST() local 17 EXPECT_EQ(0, token.type); in TEST() 18 EXPECT_EQ(0u, token.flags); in TEST() 19 EXPECT_EQ(0, token.location.line); in TEST() 20 EXPECT_EQ(0, token.location.file); in TEST() 21 EXPECT_EQ("", token.text); in TEST() 26 pp::Token token; in TEST() local 27 token.type = 1; in TEST() 28 token.flags = 1; in TEST() [all …]
|
/third_party/libxml2/doc/ |
D | apibuild.py | 406 def push(self, token): argument 407 self.tokens.insert(0, token); 410 print("Last token: ", self.last) 411 print("Token queue: ", self.tokens) 414 def token(self): member in CLexer 633 def error(self, msg, token=-1): argument 638 if token != -1: 639 print("Got token ", token) 643 def debug(self, msg, token=-1): argument 645 if token != -1: [all …]
|
/third_party/typescript/src/services/ |
D | preProcess.ts | 4 …languageVersion: ScriptTarget.ES5, // controls whether the token scanner considers unicode identif… 61 * Returns true if at least one token was consumed from the stream 64 let token = scanner.getToken(); 65 if (token === SyntaxKind.DeclareKeyword) { 67 token = nextToken(); 68 if (token === SyntaxKind.ModuleKeyword) { 69 token = nextToken(); 70 if (token === SyntaxKind.StringLiteral) { 81 * Returns true if at least one token was consumed from the stream 87 let token = scanner.getToken(); [all …]
|
/third_party/parse5/packages/parse5/lib/parser/ |
D | index.ts | 23 type Token, alias 31 } from '../common/token.js'; 125 private currentToken: Token | null = null; 239 _err(token: Token, code: ERR, beforeToken?: boolean): void { 242 const loc = token.location ?? BASE_LOC; 361 _setDocumentType(token: DoctypeToken): void { 362 const name = token.name || ''; 363 const publicId = token.publicId || ''; 364 const systemId = token.systemId || ''; 368 if (token.location) { [all …]
|
/third_party/python/Doc/library/ |
D | token-list.inc | 18 Token value for ``"("``. 22 Token value for ``")"``. 26 Token value for ``"["``. 30 Token value for ``"]"``. 34 Token value for ``":"``. 38 Token value for ``","``. 42 Token value for ``";"``. 46 Token value for ``"+"``. 50 Token value for ``"-"``. 54 Token value for ``"*"``. [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | complexNarrowingWithAny.types | 133 //real code uses an opaque token, using new String() to simulate. 1189 injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 1190 >injectorGetInternal : (token: any, requestNodeIndex: number, notFoundResult: any) => any 1191 >token : any 1195 …if (((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex))) { return this._Defaul… 1196 >((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex)) : boolean 1197 >(token === import46.DefaultValueAccessor) && (3 === requestNodeIndex) : boolean 1198 >(token === import46.DefaultValueAccessor) : boolean 1199 >token === import46.DefaultValueAccessor : boolean 1200 >token : any [all …]
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLUtil.cpp | 35 bool is_assignment(Token::Kind op) { in is_assignment() 37 case Token::EQ: // fall through in is_assignment() 38 case Token::PLUSEQ: // fall through in is_assignment() 39 case Token::MINUSEQ: // fall through in is_assignment() 40 case Token::STAREQ: // fall through in is_assignment() 41 case Token::SLASHEQ: // fall through in is_assignment() 42 case Token::PERCENTEQ: // fall through in is_assignment() 43 case Token::SHLEQ: // fall through in is_assignment() 44 case Token::SHREQ: // fall through in is_assignment() 45 case Token::BITWISEOREQ: // fall through in is_assignment() [all …]
|
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
D | command_parser.cc | 87 for (auto token = tokenizer_->NextToken(); !token->IsEOS(); in Parse() local 88 token = tokenizer_->NextToken()) { in Parse() 89 if (token->IsEOL()) in Parse() 92 if (!token->IsIdentifier()) { in Parse() 95 token->ToOriginalString())); in Parse() 98 std::string cmd_name = token->AsString(); in Parse() 101 token = tokenizer_->NextToken(); in Parse() 102 if (!token->IsIdentifier()) in Parse() 104 token->ToOriginalString())); in Parse() 106 cmd_name = token->AsString(); in Parse() [all …]
|
/third_party/rust/crates/serde/serde_test/src/ |
D | de.rs | 8 use token::Token; 12 tokens: &'de [Token], 18 Some(token) if token == $expected => {} 20 "expected Token::{} but deserialization wants Token::{}", 24 "end of tokens but deserialization wants Token::{}", 32 ($token:expr) => { 33 panic!("deserialization did not expect this token: {}", $token) 44 pub fn new(tokens: &'de [Token]) -> Self { in new() 48 fn peek_token_opt(&self) -> Option<Token> { in peek_token_opt() argument 52 fn peek_token(&self) -> Token { in peek_token() argument [all …]
|