Searched refs:token (Results 1 - 25 of 1600) sorted by relevance

1234567891011>>

/external/antlr/antlr-3.4/runtime/Python/tests/
H A Dt004lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.FOO
29 assert token.start == 0, token.start
30 assert token.stop == 0, token.stop
31 assert token.text == 'f', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
H A Dt010lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.IDENTIFIER
29 assert token.start == 0, token.start
30 assert token.stop == 5, token.stop
31 assert token.text == 'foobar', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
H A Dt011lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.IDENTIFIER
29 assert token.start == 0, token.start
30 assert token.stop == 5, token.stop
31 assert token.text == 'foobar', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
H A Dt005lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.FOO
29 assert token.start == 0, token.start
30 assert token.stop == 1, token.stop
31 assert token.text == 'fo', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
H A Dt008lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.FOO
29 assert token.start == 0, token.start
30 assert token.stop == 0, token.stop
31 assert token.text == 'f', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
H A Dt009lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.DIGIT
29 assert token.start == 0, token.start
30 assert token.stop == 0, token.stop
31 assert token.text == '0', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
H A Dt006lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.FOO
29 assert token.start == 0, token.start
30 assert token.stop == 1, token.stop
31 assert token.text == 'fo', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
H A Dt007lexer.py27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.FOO
29 assert token.start == 0, token.start
30 assert token.stop == 1, token.stop
31 assert token.text == 'fo', token.text
33 token = lexer.nextToken()
34 assert token
[all...]
/external/chromium_org/third_party/angle/tests/preprocessor_tests/
H A Dtoken_test.cpp13 pp::Token token; local
14 EXPECT_EQ(0, token.type);
15 EXPECT_EQ(0u, token.flags);
16 EXPECT_EQ(0, token.location.line);
17 EXPECT_EQ(0, token.location.file);
18 EXPECT_EQ("", token.text);
23 pp::Token token; local
24 token.type = 1;
25 token.flags = 1;
26 token
40 pp::Token token; local
68 pp::Token token; local
78 pp::Token token; local
81 out1 << token; local
87 out2 << token; local
[all...]
/external/antlr/antlr-3.4/runtime/Perl5/examples/id/
H A Did.pl16 my $token = $lexer->next_token();
17 last if $token->get_type() == IDLexer->EOF;
19 print "text: ", $token->get_text(), "\n";
20 print "type: ", $token->get_type(), "\n";
21 print "pos: ", $token->get_line(), ':', $token->get_char_position_in_line(), "\n";
22 print "channel: ", $token->get_channel(), "\n";
23 print "token index: ", $token->get_token_index(), "\n";
/external/chromium_org/third_party/mesa/src/src/glsl/glcpp/tests/
H A D097-paste-with-non-function-macro.c1 #define PASTE_MACRO one ## token
/external/mesa3d/src/glsl/glcpp/tests/
H A D097-paste-with-non-function-macro.c1 #define PASTE_MACRO one ## token
/external/chromium_org/chrome/browser/resources/cryptotoken/
H A Drequestqueue.js12 * Represents a queued request. Once given a token, call complete() once the
54 /** @return {boolean} Whether this token has already completed. */
70 * Inserts this token into the queue.
71 * @param {RequestToken} token Queue token
74 RequestQueue.prototype.insertToken_ = function(token) {
76 this.head_ = token;
77 this.tail_ = token;
80 this.tail_.next = token;
81 token
[all...]
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3commontoken.c2 * Contains the default implementation of the common token used within
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);
48 static void setCharPositionInLine (pANTLR3_COMMON_TOKEN token, ANTLR3_INT3
75 pANTLR3_COMMON_TOKEN token; local
193 pANTLR3_COMMON_TOKEN token; local
247 ANTLR3_UINT32 token; local
306 pANTLR3_COMMON_TOKEN token; local
326 antlr3SetTokenAPI(pANTLR3_COMMON_TOKEN token) argument
351 getText(pANTLR3_COMMON_TOKEN token) argument
415 setText8(pANTLR3_COMMON_TOKEN token, pANTLR3_UINT8 text) argument
451 setText(pANTLR3_COMMON_TOKEN token, pANTLR3_STRING text) argument
464 getType(pANTLR3_COMMON_TOKEN token) argument
469 setType(pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 type) argument
474 getLine(pANTLR3_COMMON_TOKEN token) argument
479 setLine(pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 line) argument
484 getCharPositionInLine(pANTLR3_COMMON_TOKEN token) argument
489 setCharPositionInLine(pANTLR3_COMMON_TOKEN token, ANTLR3_INT32 pos) argument
494 getChannel(pANTLR3_COMMON_TOKEN token) argument
499 setChannel(pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 channel) argument
504 getTokenIndex(pANTLR3_COMMON_TOKEN token) argument
509 setTokenIndex(pANTLR3_COMMON_TOKEN token, ANTLR3_MARKER index) argument
514 getStartIndex(pANTLR3_COMMON_TOKEN token) argument
519 setStartIndex(pANTLR3_COMMON_TOKEN token, ANTLR3_MARKER start) argument
524 getStopIndex(pANTLR3_COMMON_TOKEN token) argument
529 setStopIndex(pANTLR3_COMMON_TOKEN token, ANTLR3_MARKER stop) argument
534 toString(pANTLR3_COMMON_TOKEN token) argument
[all...]
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/parser/
H A DParserException.java10 Token token; field in class:ParserException
12 public ParserException(@SuppressWarnings("hiding") Token token, String message) argument
15 this.token = token;
20 return this.token;
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
H A DMediaQueryBlockWatcher.cpp17 void MediaQueryBlockWatcher::handleToken(const MediaQueryToken& token) argument
19 if (token.blockType() == MediaQueryToken::BlockStart) {
21 } else if (token.blockType() == MediaQueryToken::BlockEnd) {
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
H A Dtokenutil.py32 def GetFirstTokenInSameLine(token):
33 """Returns the first token in the same line as token.
36 token: Any token in the line.
39 The first token in the same line as token.
41 while not token.IsFirstInLine():
42 token = token
[all...]
H A Dindentation.py44 # For each token, we determine if it is a block or continuation token.
60 """Stores information about a token.
63 token: The token
64 is_block: Whether the token represents a block indentation.
65 is_transient: Whether the token should be automatically removed without
66 finding a matching end token.
67 overridden_by: TokenInfo for a token that overrides the indentation that
68 this token woul
[all...]
/external/chromium_org/third_party/closure_linter/closure_linter/
H A Dindentation.py44 # For each token, we determine if it is a block or continuation token.
60 """Stores information about a token.
63 token: The token
64 is_block: Whether the token represents a block indentation.
65 is_transient: Whether the token should be automatically removed without
66 finding a matching end token.
67 overridden_by: TokenInfo for a token that overrides the indentation that
68 this token woul
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
H A DCommonTree.cs47 /** <summary>A single token is the payload</summary> */
49 public IToken token; field in class:Antlr.Runtime.Tree.CommonTree
52 * What token indexes bracket all tokens associated with this node
73 this.token = node.token;
79 this.token = t;
85 if (token == null || token.CharPositionInLine == -1) {
91 return token.CharPositionInLine;
107 return token
[all...]
/external/antlr/antlr-3.4/runtime/Perl5/examples/zero-one/
H A Dt.pl16 my $token = $lexer->next_token();
17 last if $token->get_type() == $TLexer::EOF;
19 print "type: ", $token->get_type(), "\n";
20 print "text: ", $token->get_text(), "\n";
/external/chromium_org/third_party/angle/src/compiler/preprocessor/
H A DDirectiveParser.h30 virtual void lex(Token *token);
35 void parseDirective(Token *token);
36 void parseDefine(Token *token);
37 void parseUndef(Token *token);
38 void parseIf(Token *token);
39 void parseIfdef(Token *token);
40 void parseIfndef(Token *token);
41 void parseElse(Token *token);
42 void parseElif(Token *token);
43 void parseEndif(Token *token);
[all...]
H A DDirectiveParser.cpp39 DirectiveType getDirective(const pp::Token *token) argument
55 if (token->type != pp::Token::IDENTIFIER)
58 if (token->text == kDirectiveDefine)
60 if (token->text == kDirectiveUndef)
62 if (token->text == kDirectiveIf)
64 if (token->text == kDirectiveIfdef)
66 if (token->text == kDirectiveIfndef)
68 if (token->text == kDirectiveElse)
70 if (token->text == kDirectiveElif)
72 if (token
105 isEOD(const pp::Token *token) argument
110 skipUntilEOD(pp::Lexer *lexer, pp::Token *token) argument
156 lex(Token *token) argument
220 lex(Token *token) argument
249 parseDirective(Token *token) argument
329 parseDefine(Token *token) argument
411 parseUndef(Token *token) argument
440 parseIf(Token *token) argument
446 parseIfdef(Token *token) argument
452 parseIfndef(Token *token) argument
458 parseElse(Token *token) argument
499 parseElif(Token *token) argument
539 parseEndif(Token *token) argument
563 parseError(Token *token) argument
571 stream << *token; local
578 parsePragma(Token *token) argument
634 parseExtension(Token *token) argument
701 parseVersion(Token *token) argument
779 parseLine(Token *token) argument
862 parseConditionalIf(Token *token) argument
903 parseExpressionIf(Token *token) argument
927 parseExpressionIfdef(Token *token) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
H A DHTMLTreeBuilder.cpp146 explicit CharacterTokenBuffer(AtomicHTMLToken* token) argument
147 : m_characters(token->characters().impl())
149 , m_end(token->characters().length())
372 void HTMLTreeBuilder::constructTree(AtomicHTMLToken* token) argument
374 if (shouldProcessTokenInForeignContent(token))
375 processTokenInForeignContent(token);
377 processToken(token);
396 void HTMLTreeBuilder::processToken(AtomicHTMLToken* token) argument
398 if (token->type() == HTMLToken::Character) {
399 processCharacter(token);
431 processDoctypeToken(AtomicHTMLToken* token) argument
490 processCloseWhenNestedTag(AtomicHTMLToken* token) argument
523 adjustSVGTagNameCase(AtomicHTMLToken* token) argument
539 adjustAttributes(AtomicHTMLToken* token) argument
556 adjustSVGAttributes(AtomicHTMLToken* token) argument
561 adjustMathMLAttributes(AtomicHTMLToken* token) argument
577 adjustForeignAttributes(AtomicHTMLToken* token) argument
601 processStartTagForInBody(AtomicHTMLToken* token) argument
919 processTemplateStartTag(AtomicHTMLToken* token) argument
927 processTemplateEndTag(AtomicHTMLToken* token) argument
945 processEndOfFileForInTemplateContents(AtomicHTMLToken* token) argument
991 processStartTagForInTable(AtomicHTMLToken* token) argument
1065 processStartTag(AtomicHTMLToken* token) argument
1439 processHtmlStartTagForInBody(AtomicHTMLToken* token) argument
1449 processBodyEndTagForInBody(AtomicHTMLToken* token) argument
1462 processAnyOtherEndTagForInBody(AtomicHTMLToken* token) argument
1484 callTheAdoptionAgency(AtomicHTMLToken* token) argument
1642 processEndTagForInTableBody(AtomicHTMLToken* token) argument
1679 processEndTagForInRow(AtomicHTMLToken* token) argument
1715 processEndTagForInCell(AtomicHTMLToken* token) argument
1752 processEndTagForInBody(AtomicHTMLToken* token) argument
1930 processEndTagForInTable(AtomicHTMLToken* token) argument
1952 processEndTag(AtomicHTMLToken* token) argument
2219 processComment(AtomicHTMLToken* token) argument
2241 processCharacter(AtomicHTMLToken* token) argument
2423 processEndOfFile(AtomicHTMLToken* token) argument
2566 processStartTagForInHead(AtomicHTMLToken* token) argument
2615 processGenericRCDATAStartTag(AtomicHTMLToken* token) argument
2625 processGenericRawTextStartTag(AtomicHTMLToken* token) argument
2635 processScriptStartTag(AtomicHTMLToken* token) argument
2651 shouldProcessTokenInForeignContent(AtomicHTMLToken* token) argument
2682 processTokenInForeignContent(AtomicHTMLToken* token) argument
[all...]
/external/chromium_org/cloud_print/gcp20/prototype/
H A Dx_privet_token_unittest.cc34 std::string token = base64_val + ":" + issue_time_str; local
36 ASSERT_EQ(token, xtoken.GenerateXTokenWithTime(issue_time));
46 std::string token = xtoken.GenerateXTokenWithTime(gen_time.ToTimeT()); local
47 EXPECT_TRUE(xtoken.CheckValidXToken(token));
49 token = xtoken.GenerateXTokenWithTime(gen_time.ToTimeT() + 1);
50 EXPECT_TRUE(xtoken.CheckValidXToken(token));
52 token = xtoken.GenerateXTokenWithTime(gen_time.ToTimeT() + 55);
53 EXPECT_TRUE(xtoken.CheckValidXToken(token));
55 token = xtoken.GenerateXTokenWithTime(gen_time.ToTimeT() + 60*60 - 5);
56 EXPECT_TRUE(xtoken.CheckValidXToken(token));
71 std::string token = "CEEA1AD9CEEA1AD9CEEA1AD9CEEA1AD"; local
[all...]

Completed in 681 milliseconds

1234567891011>>