Home
last modified time | relevance | path

Searched full:token (Results 1 – 25 of 20165) sorted by relevance

12345678910>>...807

/aosp_15_r20/external/mesa3d/src/freedreno/ir3/
H A Dir3_lexer.l32 #define TOKEN(t) (ir3_yylval.tok = t) macro
100 "@localsize" return TOKEN(T_A_LOCALSIZE);
101 "@const" return TOKEN(T_A_CONST);
102 "@buf" return TOKEN(T_A_BUF);
103 "@invocationid" return TOKEN(T_A_INVOCATIONID);
104 "@wgid" return TOKEN(T_A_WGID);
105 "@numwg" return TOKEN(T_A_NUMWG);
106 "@branchstack" return TOKEN(T_A_BRANCHSTACK);
107 "@in" return TOKEN(T_A_IN);
108 "@out" return TOKEN(T_A_OUT);
[all …]
H A Dir3_parser.y343 %token <num> T_INT
344 %token <unum> T_HEX
345 %token <flt> T_FLOAT
346 %token <str> T_IDENTIFIER
347 %token <num> T_REGISTER
348 %token <num> T_CONSTANT
351 %token <tok> T_A_LOCALSIZE
352 %token <tok> T_A_CONST
353 %token <tok> T_A_BUF
354 %token <tok> T_A_INVOCATIONID
[all …]
/aosp_15_r20/external/deqp-deps/amber/src/amberscript/
Dparser.cc207 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 …]
/aosp_15_r20/external/icing/icing/tokenization/
H A Drfc822-tokenizer_test.cc49 EqualsToken(Token::Type::RFC822_TOKEN, "<alex>"), in TEST()
50 EqualsToken(Token::Type::RFC822_HOST_ADDRESS, "alex"), in TEST()
51 EqualsToken(Token::Type::RFC822_ADDRESS, "alex"), in TEST()
52 EqualsToken(Token::Type::RFC822_ADDRESS_COMPONENT_HOST, "alex"), in TEST()
53 EqualsToken(Token::Type::RFC822_TOKEN, "<tom>"), in TEST()
54 EqualsToken(Token::Type::RFC822_HOST_ADDRESS, "tom"), in TEST()
55 EqualsToken(Token::Type::RFC822_ADDRESS, "tom"), in TEST()
56 EqualsToken(Token::Type::RFC822_ADDRESS_COMPONENT_HOST, "tom")))); in TEST()
67 EqualsToken(Token::Type::RFC822_TOKEN, "<你[email protected]>"), in TEST()
68 EqualsToken(Token::Type::RFC822_LOCAL_ADDRESS, "你alex"), in TEST()
[all …]
/aosp_15_r20/external/angle/src/compiler/preprocessor/
H A DDirectiveParser.cpp19 #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 …]
/aosp_15_r20/external/rust/android-crates-io/crates/xml-rs/src/reader/
Dlexer.rs18 /// `Token` represents a single lexeme of an XML document. These lexemes
21 pub(crate) enum Token { enum
60 impl fmt::Display for Token { implementation
64 Token::Character(c) => c.fmt(f), in fmt()
66 Token::OpeningTagStart => "<", in fmt()
67 Token::ProcessingInstructionStart => "<?", in fmt()
68 Token::DoctypeStart => "<!DOCTYPE", in fmt()
69 Token::ClosingTagStart => "</", in fmt()
70 Token::CommentStart => "<!--", in fmt()
71 Token::CDataStart => "<![CDATA[", in fmt()
[all …]
/aosp_15_r20/external/libxml2/doc/
H A Dapibuild.py395 def push(self, token): argument
396 self.tokens.insert(0, token);
399 print("Last token: ", self.last)
400 print("Token queue: ", self.tokens)
403 def token(self): member in CLexer
624 def error(self, msg, token=-1): argument
629 if token != -1:
630 print("Got token ", token)
634 def debug(self, msg, token=-1): argument
636 if token != -1:
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202005/MdePkg/Include/Library/
H A DPcdLib.h27 Retrieves a token number based on a token name.
29 Returns the token number associated with the PCD token specified by TokenName.
30 If TokenName is not a valid token in the token space, then the module will not build.
32 @param TokenName The name of the PCD token to retrieve the token number for.
34 @return The token number associated with the PCD.
41 Retrieves a Boolean PCD feature flag based on a token name.
44 If TokenName is not a valid token in the token space, then the module will not build.
47 @param TokenName The name of the PCD token to retrieve a current value for.
56 Retrieves an 8-bit fixed PCD token value based on a token name.
58 Returns the 8-bit value for the token specified by TokenName.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/UDK2017/MdePkg/Include/Library/
H A DPcdLib.h33 Retrieves a token number based on a token name.
35 Returns the token number associated with the PCD token specified by TokenName.
36 If TokenName is not a valid token in the token space, then the module will not build.
38 @param TokenName The name of the PCD token to retrieve the token number for.
40 @return The token number associated with the PCD.
47 Retrieves a Boolean PCD feature flag based on a token name.
50 If TokenName is not a valid token in the token space, then the module will not build.
53 @param TokenName The name of the PCD token to retrieve a current value for.
62 Retrieves an 8-bit fixed PCD token value based on a token name.
64 Returns the 8-bit value for the token specified by TokenName.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202302/MdePkg/Include/Library/
H A DPcdLib.h26 Retrieves a token number based on a token name.
28 Returns the token number associated with the PCD token specified by TokenName.
29 If TokenName is not a valid token in the token space, then the module will not build.
31 @param TokenName The name of the PCD token to retrieve the token number for.
33 @return The token number associated with the PCD.
39 Retrieves a Boolean PCD feature flag based on a token name.
42 If TokenName is not a valid token in the token space, then the module will not build.
45 @param TokenName The name of the PCD token to retrieve a current value for.
53 Retrieves an 8-bit fixed PCD token value based on a token name.
55 Returns the 8-bit value for the token specified by TokenName.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202111/MdePkg/Include/Library/
H A DPcdLib.h27 Retrieves a token number based on a token name.
29 Returns the token number associated with the PCD token specified by TokenName.
30 If TokenName is not a valid token in the token space, then the module will not build.
32 @param TokenName The name of the PCD token to retrieve the token number for.
34 @return The token number associated with the PCD.
41 Retrieves a Boolean PCD feature flag based on a token name.
44 If TokenName is not a valid token in the token space, then the module will not build.
47 @param TokenName The name of the PCD token to retrieve a current value for.
56 Retrieves an 8-bit fixed PCD token value based on a token name.
58 Returns the 8-bit value for the token specified by TokenName.
[all …]
/aosp_15_r20/external/pigweed/pw_console/py/pw_console/
H A Dpigweed_code_style.py21 from pygments.token import Token # type: ignore
24 Token.Comment: '#778899', # Lighter comments
25 Token.Comment.Hashbang: '#778899',
26 Token.Comment.Multiline: '#778899',
27 Token.Comment.Preproc: '#ff79c6',
28 Token.Comment.PreprocFile: '',
29 Token.Comment.Single: '#778899',
30 Token.Comment.Special: '#778899',
31 Token.Error: '#f8f8f2',
32 Token.Escape: '',
[all …]
/aosp_15_r20/external/antlr/runtime/Ruby/test/functional/lexer/
H A Dbasic.rb20 token = lexer.next_token
21 token.name.should == 'ZERO'
23 token = lexer.next_token
24 token.name.should == '<EOF>'
30 token_types = lexer.map { |token| token.name }
34 example "mismatched token" do
38 token = lexer.next_token
62 token = lexer.next_token
63 token.name.should == 'ZERO'
65 token = lexer.next_token
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/go/scanner/
Dscanner_test.go8 "go/token"
16 var fset = token.NewFileSet()
25 func tokenclass(tok token.Token) int { argument
38 tok token.Token
45 {token.COMMENT, "/* a comment */", special},
46 {token.COMMENT, "// a comment \n", special},
47 {token.COMMENT, "/*\r*/", special},
48 {token.COMMENT, "/**\r/*/", special}, // issue 11151
49 {token.COMMENT, "/**\r\r/*/", special},
50 {token.COMMENT, "//\r\n", special},
[all …]
/aosp_15_r20/external/deqp-deps/amber/src/vkscript/
Dcommand_parser.cc87 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 …]
/aosp_15_r20/external/snakeyaml/src/main/java/org/yaml/snakeyaml/parser/
H A DParserImpl.java53 import org.yaml.snakeyaml.tokens.Token;
187 private CommentEvent produceCommentEvent(CommentToken token) { in produceCommentEvent() argument
188 Mark startMark = token.getStartMark(); in produceCommentEvent()
189 Mark endMark = token.getEndMark(); in produceCommentEvent()
190 String value = token.getValue(); in produceCommentEvent()
191 CommentType type = token.getCommentType(); in produceCommentEvent()
209 StreamStartToken token = (StreamStartToken) scanner.getToken(); in produce() local
210 Event event = new StreamStartEvent(token.getStartMark(), token.getEndMark()); in produce()
221 if (scanner.checkToken(Token.ID.Comment)) { in produce()
225 if (!scanner.checkToken(Token.ID.Directive, Token.ID.DocumentStart, Token.ID.StreamEnd)) { in produce()
[all …]
/aosp_15_r20/external/pdfium/xfa/fxfa/formcalc/
H A Dcxfa_fmlexer_unittest.cpp14 CXFA_FMLexer::Token token = lexer.NextToken(); in TEST() local
15 EXPECT_EQ(TOKeof, token.GetType()); in TEST()
21 CXFA_FMLexer::Token token = lexer.NextToken(); in TEST() local
22 EXPECT_EQ(TOKeof, token.GetType()); in TEST()
29 CXFA_FMLexer::Token token = lexer.NextToken(); in TEST() local
31 EXPECT_EQ(TOKminus, token.GetType()); in TEST()
32 token = lexer.NextToken(); in TEST()
33 EXPECT_EQ(L"12", token.GetString()); in TEST()
34 token = lexer.NextToken(); in TEST()
35 EXPECT_EQ(TOKeof, token.GetType()); in TEST()
[all …]
/aosp_15_r20/external/antlr/runtime/C/src/
H A Dantlr3commontoken.c2 * Contains the default implementation of the common token used within
38 /* Token API
40 static pANTLR3_STRING getText (pANTLR3_COMMON_TOKEN token);
41 static void setText (pANTLR3_COMMON_TOKEN token, pANTLR3_STRING text);
42 static void setText8 (pANTLR3_COMMON_TOKEN token, pANTLR3_UINT8 text);
43 static ANTLR3_UINT32 getType (pANTLR3_COMMON_TOKEN token);
44 static void setType (pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 type);
45 static ANTLR3_UINT32 getLine (pANTLR3_COMMON_TOKEN token);
46 static void setLine (pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 line);
47 static ANTLR3_INT32 getCharPositionInLine (pANTLR3_COMMON_TOKEN token);
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202302/MdePkg/Include/Ppi/
H A DPcd.h6 The interfaces for dynamic type PCD do not require the token space guid as parameter,
7 but interfaces for dynamic-ex type PCD require token space guid as parameter.
23 Sets the SKU value for subsequent calls to set or get PCD token values.
28 For each item (token), the database can hold a single value that applies to all SKUs,
34 single value for that token. For SKU-enabled tokens, the system will use the SKU Id set by the
35 …l to SetSku(). If no SKU Id is set or the currently set SKU Id isn't valid for the specified token,
40 set values associated with a PCD token.
52 Retrieves an 8-bit value for a given PCD token.
54 Retrieves the current byte-sized value for a PCD token number.
57 @param[in] TokenNumber The PCD token number.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202005/MdePkg/Include/Ppi/
H A DPcd.h6 The interfaces for dynamic type PCD do not require the token space guid as parameter,
7 but interfaces for dynamic-ex type PCD require token space guid as parameter.
24 Sets the SKU value for subsequent calls to set or get PCD token values.
29 For each item (token), the database can hold a single value that applies to all SKUs,
35 single value for that token. For SKU-enabled tokens, the system will use the SKU Id set by the
36 …l to SetSku(). If no SKU Id is set or the currently set SKU Id isn't valid for the specified token,
41 set values associated with a PCD token.
55 Retrieves an 8-bit value for a given PCD token.
57 Retrieves the current byte-sized value for a PCD token number.
60 @param[in] TokenNumber The PCD token number.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/UDK2017/MdePkg/Include/Ppi/
H A DPcd.h6 The interfaces for dynamic type PCD do not require the token space guid as parameter,
7 but interfaces for dynamic-ex type PCD require token space guid as parameter.
30 Sets the SKU value for subsequent calls to set or get PCD token values.
35 For each item (token), the database can hold a single value that applies to all SKUs,
41 single value for that token. For SKU-enabled tokens, the system will use the SKU Id set by the
42 …l to SetSku(). If no SKU Id is set or the currently set SKU Id isn't valid for the specified token,
47 set values associated with a PCD token.
61 Retrieves an 8-bit value for a given PCD token.
63 Retrieves the current byte-sized value for a PCD token number.
66 @param[in] TokenNumber The PCD token number.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202111/MdePkg/Include/Ppi/
H A DPcd.h6 The interfaces for dynamic type PCD do not require the token space guid as parameter,
7 but interfaces for dynamic-ex type PCD require token space guid as parameter.
24 Sets the SKU value for subsequent calls to set or get PCD token values.
29 For each item (token), the database can hold a single value that applies to all SKUs,
35 single value for that token. For SKU-enabled tokens, the system will use the SKU Id set by the
36 …l to SetSku(). If no SKU Id is set or the currently set SKU Id isn't valid for the specified token,
41 set values associated with a PCD token.
55 Retrieves an 8-bit value for a given PCD token.
57 Retrieves the current byte-sized value for a PCD token number.
60 @param[in] TokenNumber The PCD token number.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202302/MdePkg/Include/Protocol/
H A DPcd.h6 The interfaces in dynamic type PCD do not require the token space guid as parameter,
7 but interfaces in dynamic-ex type PCD require token space guid as parameter.
28 Sets the SKU value for subsequent calls to set or get PCD token values.
33 For each item (token), the database can hold a single value that applies to all SKUs,
39 single value for that token. For SKU-enabled tokens, the system will use the SKU Id set by the
40 …l to SetSku(). If no SKU Id is set or the currently set SKU Id isn't valid for the specified token,
45 set values associated with a PCD token.
56 Retrieves an 8-bit value for a given PCD token.
58 Retrieves the current byte-sized value for a PCD token number.
61 @param[in] TokenNumber The PCD token number.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202005/MdePkg/Include/Protocol/
H A DPcd.h6 The interfaces in dynamic type PCD do not require the token space guid as parameter,
7 but interfaces in dynamic-ex type PCD require token space guid as parameter.
29 Sets the SKU value for subsequent calls to set or get PCD token values.
34 For each item (token), the database can hold a single value that applies to all SKUs,
40 single value for that token. For SKU-enabled tokens, the system will use the SKU Id set by the
41 …l to SetSku(). If no SKU Id is set or the currently set SKU Id isn't valid for the specified token,
46 set values associated with a PCD token.
59 Retrieves an 8-bit value for a given PCD token.
61 Retrieves the current byte-sized value for a PCD token number.
64 @param[in] TokenNumber The PCD token number.
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/UDK2017/MdePkg/Include/Protocol/
H A DPcd.h6 The interfaces in dynamic type PCD do not require the token space guid as parameter,
7 but interfaces in dynamic-ex type PCD require token space guid as parameter.
32 Sets the SKU value for subsequent calls to set or get PCD token values.
37 For each item (token), the database can hold a single value that applies to all SKUs,
43 single value for that token. For SKU-enabled tokens, the system will use the SKU Id set by the
44 …l to SetSku(). If no SKU Id is set or the currently set SKU Id isn't valid for the specified token,
49 set values associated with a PCD token.
62 Retrieves an 8-bit value for a given PCD token.
64 Retrieves the current byte-sized value for a PCD token number.
67 @param[in] TokenNumber The PCD token number.
[all …]

12345678910>>...807