Searched refs:token (Results 51 - 75 of 781) sorted by relevance

1234567891011>>

/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
H A DUnwantedTokenException.pm12 return $self->token;
26 if (defined $self->token) {
27 return "UnwantedTokenException(found=" . $self->token->get_text() . "$exp)";
/external/webkit/Source/JavaScriptCore/runtime/
H A DLiteralParser.cpp45 LiteralParser::TokenType LiteralParser::Lexer::lex(LiteralParserToken& token) argument
52 token.type = TokEnd;
53 token.start = token.end = m_ptr;
56 token.type = TokError;
57 token.start = m_ptr;
60 token.type = TokLBracket;
61 token.end = ++m_ptr;
64 token.type = TokRBracket;
65 token
141 lexString(LiteralParserToken& token) argument
216 lexNumber(LiteralParserToken& token) argument
[all...]
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
H A DMissingTokenException.js18 org.antlr.lang.isValue(this.token))
20 return "MissingTokenException(inserted "+this.inserted+" at "+this.token.getText()+")";
22 if ( org.antlr.lang.isValue(this.token) ) {
23 return "MissingTokenException(at "+this.token.getText()+")";
H A DUnwantedTokenException.js1 /** An extra token while parsing a TokenStream */
13 return this.token;
20 if ( !org.antlr.lang.isValue(this.token) ) {
23 return "UnwantedTokenException(found="+this.token.getText()+exp+")";
/external/antlr/antlr-3.4/runtime/Python/tests/
H A Dt003lexer.py27 token = lexer.nextToken()
28 self.failUnlessEqual(token.type, self.lexerModule.ZERO)
30 token = lexer.nextToken()
31 self.failUnlessEqual(token.type, self.lexerModule.FOOZE)
33 token = lexer.nextToken()
34 self.failUnlessEqual(token.type, self.lexerModule.ONE)
36 token = lexer.nextToken()
37 self.failUnlessEqual(token.type, self.lexerModule.EOF)
45 token = lexer.nextToken()
H A Dt001lexer.py27 token = lexer.nextToken()
28 self.failUnlessEqual(token.type, self.lexerModule.ZERO)
30 token = lexer.nextToken()
31 self.failUnlessEqual(token.type, self.lexerModule.EOF)
38 types = [token.type for token in lexer]
48 token = lexer.nextToken()
H A Dt002lexer.py27 token = lexer.nextToken()
28 self.failUnlessEqual(token.type, self.lexerModule.ZERO)
30 token = lexer.nextToken()
31 self.failUnlessEqual(token.type, self.lexerModule.ONE)
33 token = lexer.nextToken()
34 self.failUnlessEqual(token.type, self.lexerModule.EOF)
42 token = lexer.nextToken()
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
H A Derroroutput.py30 if error.token:
31 line = '%d' % error.token.line_number
43 if error.token:
44 line = 'Line %d, ' % error.token.line_number
/external/smali/smali/src/main/java/org/jf/smali/
H A DSemanticException.java54 this.token = tree.getToken();
56 this.line = token.getLine();
57 this.charPositionInLine = token.getCharPositionInLine();
61 SemanticException(IntStream input, Token token, String errorMessage, Object... messageArguments) { argument
64 this.token = token;
65 this.index = ((CommonToken)token).getStartIndex();
66 this.line = token.getLine();
67 this.charPositionInLine = token.getCharPositionInLine();
/external/webkit/Source/WebCore/html/
H A DDOMTokenList.cpp33 bool DOMTokenList::validateToken(const AtomicString& token, ExceptionCode& ec) argument
35 if (token.isEmpty()) {
40 unsigned length = token.length();
42 if (isHTMLSpace(token[i])) {
51 String DOMTokenList::addToken(const AtomicString& input, const AtomicString& token) argument
54 return token;
60 builder.append(token);
64 String DOMTokenList::removeToken(const AtomicString& input, const AtomicString& token) argument
66 // Algorithm defined at http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#remove-a-token-from-a-string
86 if (s == token) {
[all...]
H A DDOMTokenList.idl33 boolean contains(in DOMString token) raises(DOMException);
34 void add(in DOMString token) raises(DOMException);
35 void remove(in DOMString token) raises(DOMException);
36 boolean toggle(in DOMString token) raises(DOMException);
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DTextureManager.cpp55 void TextureManager::releaseToken(TextureToken token) argument
57 TextureMap::iterator it = m_textures.find(token);
59 removeTexture(token, it->second);
62 bool TextureManager::hasTexture(TextureToken token) argument
64 if (m_textures.contains(token)) {
66 m_textureLRUSet.remove(token);
67 m_textureLRUSet.add(token);
73 bool TextureManager::isProtected(TextureToken token) argument
75 return token && hasTexture(token)
78 protectTexture(TextureToken token) argument
99 TextureToken token = *lruIt; local
113 addTexture(TextureToken token, TextureInfo info) argument
122 removeTexture(TextureToken token, TextureInfo info) argument
133 requestTexture(TextureToken token, IntSize size, unsigned format, bool* newTexture) argument
[all...]
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DMissingTokenException.as17 if ( inserted!=null && token!=null ) {
18 return "MissingTokenException(inserted "+inserted+" at "+token.text+")";
20 if ( token!=null ) {
21 return "MissingTokenException(at "+token.text+")";
/external/javassist/src/main/javassist/compiler/ast/
H A DKeyword.java26 public Keyword(int token) { argument
27 tokenId = token;
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/lexer/
H A DLexer.java11 protected Token token; field in class:Lexer
34 while(this.token == null)
36 this.token = getToken();
40 return this.token;
45 while(this.token == null)
47 this.token = getToken();
51 Token result = this.token;
52 this.token = null;
160 @SuppressWarnings("hiding") Token token = new0(
171 return token;
1077 unread(@uppressWarningsÓ) Token token) argument
[all...]
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DAcceptParser.java79 Token token = lexer.getNextToken();
80 accept.setContentType(token.getTokenValue());
83 token = lexer.getNextToken();
84 accept.setContentSubType(token.getTokenValue());
97 token = lexer.getNextToken();
98 accept.setContentType(token.getTokenValue());
101 token = lexer.getNextToken();
102 accept.setContentSubType(token.getTokenValue());
/external/srec/srec/EventLog/src/
H A DEventLog.c36 ESR_ReturnCode SR_EventLogToken(SR_EventLog* self, const LCHAR* token, const LCHAR *value) argument
43 return self->token(self, token, value);
46 ESR_ReturnCode SR_EventLogTokenInt(SR_EventLog* self, const LCHAR* token, int value) argument
53 return self->tokenInt(self, token, value);
56 ESR_ReturnCode SR_EventLogTokenUint16_t(SR_EventLog* self, const LCHAR* token, asr_uint16_t value) argument
63 return self->tokenUint16_t(self, token, value);
66 ESR_ReturnCode SR_EventLogTokenSize_t(SR_EventLog* self, const LCHAR* token, size_t value) argument
73 return self->tokenSize_t(self, token, value);
76 ESR_ReturnCode SR_EventLogTokenBool(SR_EventLog* self, const LCHAR* token, ESR_BOO argument
86 SR_EventLogTokenFloat(SR_EventLog* self, const LCHAR* token, float value) argument
[all...]
/external/srec/srec/crec/
H A Dpriority_q.c77 word_token *token; local
87 token = &(word_token_array[*ptoken_index]);
88 if (token->end_node != end_node)
91 *ptoken_index = token->next_token_index;
98 if ((pq->max_cost_in_q == MAXcostdata) || (token->cost > pq->max_cost_in_q))
100 pq->max_cost_in_q = token->cost;
102 ptoken_index = &(token->next_token_index);
164 word_token* token; local
169 token = &(word_token_array[token_index]);
170 token_index = token
189 word_token *token; local
[all...]
/external/chromium/testing/gmock/scripts/generator/cpp/
H A Dast.py286 for token in self.alias:
287 if token is not None and name == token.name:
341 for token in token_list:
342 if token.name == node.name:
466 token = tokens[end]
468 if token.name == '<':
470 elif token.name == '>':
506 token = tokens[i]
507 if token
[all...]
/external/webkit/Source/WebCore/html/parser/
H A DHTMLConstructionSite.cpp177 void HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML(AtomicHTMLToken& token) argument
180 element->setAttributeMap(token.takeAtributes(), m_fragmentScriptingPermission);
188 void HTMLConstructionSite::mergeAttributesFromTokenIntoElement(AtomicHTMLToken& token, Element* element) argument
190 if (!token.attributes())
194 for (unsigned i = 0; i < token.attributes()->length(); ++i) {
195 Attribute* attribute = token.attributes()->attributeItem(i);
201 void HTMLConstructionSite::insertHTMLHtmlStartTagInBody(AtomicHTMLToken& token) argument
210 mergeAttributesFromTokenIntoElement(token, m_openElements.htmlElement());
213 void HTMLConstructionSite::insertHTMLBodyStartTagInBody(AtomicHTMLToken& token) argument
216 mergeAttributesFromTokenIntoElement(token, m_openElement
219 insertDoctype(AtomicHTMLToken& token) argument
239 insertComment(AtomicHTMLToken& token) argument
245 insertCommentOnDocument(AtomicHTMLToken& token) argument
251 insertCommentOnHTMLHtmlElement(AtomicHTMLToken& token) argument
263 insertHTMLHeadElement(AtomicHTMLToken& token) argument
270 insertHTMLBodyElement(AtomicHTMLToken& token) argument
276 insertHTMLFormElement(AtomicHTMLToken& token, bool isDemoted) argument
288 insertHTMLElement(AtomicHTMLToken& token) argument
293 insertSelfClosingHTMLElement(AtomicHTMLToken& token) argument
305 insertFormattingElement(AtomicHTMLToken& token) argument
314 insertScriptElement(AtomicHTMLToken& token) argument
322 insertForeignElement(AtomicHTMLToken& token, const AtomicString& namespaceURI) argument
365 createElement(AtomicHTMLToken& token, const AtomicString& namespaceURI) argument
373 createHTMLElement(AtomicHTMLToken& token) argument
[all...]
/external/icu4c/test/intltest/
H A Dtokiter.cpp26 UBool TokenIterator::next(UnicodeString& token, UErrorCode& ec) { argument
30 token.truncate(0);
41 if (!nextToken(token, ec)) {
55 * Read the next token from 'this->line' and append it to 'token'.
60 * @param token the token is appended to this StringBuffer
62 * @return TRUE if a valid token is found, or FALSE if the end
65 UBool TokenIterator::nextToken(UnicodeString& token, UErrorCode& ec) { argument
80 token
[all...]
/external/chromium/chrome/common/net/gaia/
H A Dgaia_auth_consumer.cc18 token(new_token),
28 token == b.token &&
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
H A Dcheckerbase.py60 def _HandleError(self, code, message, token, position=None,
64 self.__checker.HandleError(code, message, token, position, fix_data)
74 def CheckToken(self, token, parser_state):
75 """Checks a token, given the current parser_state, for warnings and errors.
78 token: The current token under consideration.
108 lint_rules: LintRules object defining lint errors given a token
110 state_tracker: Object that tracks the current state in the token stream.
113 metadata_pass: Object that builds metadata about the token stream.
122 # tokenizer, only the token strea
[all...]
H A Dclosurizednamespacesinfo.py41 Processes token streams for dependency creation or usage and provides logic
125 def IsExtraProvide(self, token):
126 """Returns whether the given goog.provide token is unnecessary.
129 token: A goog.provide token.
132 True if the given token corresponds to an unnecessary goog.provide
138 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
144 if token in self._duplicate_provide_tokens:
154 def IsExtraRequire(self, token):
155 """Returns whether the given goog.require token i
[all...]
/external/llvm/include/llvm-c/
H A DEnhancedDisassembly.h90 Encapsulates a token from the disassembly of an instruction.
267 Retrieves a token from an instruction. The token is valid until the
269 @param token A pointer to be filled in with the token.
271 @param index The index of the token in the instruction.
274 int EDGetToken(EDTokenRef *token,
280 Gets the disassembled text for a token.
282 string. (The string becomes invalid when the token is released.)
283 @param token Th
471 typedef int (^EDTokenVisitor_t)(EDTokenRef token); variable
[all...]

Completed in 383 milliseconds

1234567891011>>