/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
H A D | StringTokenizer.cs | 52 _tokens = EnumerableExtensions.ToArray(EnumerableExtensions.SelectMany(_tokens, delegate(string token, int i) 59 return new string[] { token }; 66 return new string[] { token }; 70 return new string[] { token, str[EnumerableExtensions.Sum(EnumerableExtensions.Select(EnumerableExtensions.Take(_tokens, i + 1),
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
H A D | StringTokenizer.cs | 53 _tokens = _tokens.SelectMany( ( token, i ) => 60 return new string[] { token }; 67 return new string[] { token }; 71 return new string[] { token, str[_tokens.Take( i + 1 ).Select( t => t.Length + 1 ).Sum() - 1].ToString() };
|
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
H A D | RecognizerSharedState.js | 9 /** Track the set of token types that can follow any rule invocation. 18 * matched a token. Prevents generation of more than one error message 25 * but no token is consumed during recovery...another error is found, 27 * one token/tree node is consumed for two errors. 31 /** In lieu of a return value, this indicates that a rule or token 32 * has failed to match. Reset to false upon valid token match. 45 * the stop token index for each rule. ruleMemo[ruleIndex] is 47 * get back the stop token for associated rule or MEMO_RULE_FAILED. 58 /** The goal of all lexer rules/methods is to create a token object. 60 * create a single token [all...] |
H A D | RecognitionException.js | 8 * exceptions are built with the expected token type. 20 * state can change before the exception is reported so current token index 22 * perhaps print an entire line of input not just a single token, for example. 36 this.token = input.LT(1); 37 this.line = this.token.getLine(); 38 this.charPositionInLine = this.token.getCharPositionInLine(); 65 /** What is index of token/char were we looking at when the error occurred? 72 * For parsers. Even when it's a tree parser, token might be set. 75 token: null, 107 * for most recent token wit [all...] |
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
H A D | javascriptstatetracker.py | 34 flag_token: The flag token. 35 type_start_token: The first token specifying the flag JS type, 37 type_end_token: The last token specifying the flag JS type, 40 name_token: The token specifying the flag name. 42 description_start_token: The first token in the description. 43 description_end_token: The end token in the description. 58 """Creates the JsDocFlag object and attaches it to the given start token. 61 flag_token: The starting token of the flag. 74 """Initializes a JavaScript token stream state tracker.""" 90 def GetBlockType(self, token) [all...] |
H A D | ecmametadatapass.py | 29 """Exception indicating a parse error at the given token. 32 token: The token where the parse error occurred. 35 def __init__(self, token, message=None): 36 """Initialize a parse error at the given token with an optional message. 39 token: The token where the parse error occurred. 43 self.token = token 51 start_token: The token wher [all...] |
H A D | statetracker.py | 37 flag_token: The flag token. 38 type_start_token: The first token specifying the flag type, 40 type_end_token: The last token specifying the flag type, 43 name_token: The token specifying the flag name. 45 description_start_token: The first token in the description. 46 description_end_token: The end token in the description. 148 """Creates the DocFlag object and attaches it to the given start token. 151 flag_token: The starting token of the flag. 180 # Handle bad case, name could be immediately after flag token. 183 # Handle good case, if found token i [all...] |
H A D | checker.py | 69 def _CheckTokens(self, token, parse_error, debug_tokens): 70 """Checks a token stream for lint warnings/errors. 76 token: The first token in the token stream. 78 debug_tokens: Whether every token should be printed as it is encountered 82 A boolean indicating whether the full token stream could be checked or if 89 result = (self._ExecutePass(token, self._DependencyPass) and 90 self._ExecutePass(token, self._LintPass, 93 result = self._ExecutePass(token, sel [all...] |
/external/llvm/lib/MC/MCDisassembler/ |
H A D | EDMain.cpp | 130 int EDGetToken(EDTokenRef *token, argument 133 return ((EDInst*)inst)->getToken(*(EDToken**)token, index); 137 EDTokenRef token) { 138 return ((EDToken*)token)->getString(*buf); 141 int EDOperandIndexForToken(EDTokenRef token) { argument 142 return ((EDToken*)token)->operandID(); 145 int EDTokenIsWhitespace(EDTokenRef token) { argument 146 return ((EDToken*)token)->type() == EDToken::kTokenWhitespace; 149 int EDTokenIsPunctuation(EDTokenRef token) { argument 150 return ((EDToken*)token) 136 EDGetTokenString(const char **buf, EDTokenRef token) argument 153 EDTokenIsOpcode(EDTokenRef token) argument 157 EDTokenIsLiteral(EDTokenRef token) argument 161 EDTokenIsRegister(EDTokenRef token) argument 165 EDTokenIsNegativeLiteral(EDTokenRef token) argument 172 EDLiteralTokenAbsoluteValue(uint64_t *value, EDTokenRef token) argument 179 EDRegisterTokenValue(unsigned *registerID, EDTokenRef token) argument [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
H A D | t019lexer.py | 17 token = lexer.nextToken() 18 if token.type == antlr3.EOF:
|
H A D | t012lexerXML.py | 34 token = lexer.nextToken() 35 if token.type == self.lexerModule.EOF: 65 token = lexer.nextToken() 66 if token.type == antlr3.EOF: 89 token = lexer.nextToken() 90 if token.type == antlr3.EOF: 113 token = lexer.nextToken() 114 if token.type == antlr3.EOF: 173 ## token = lexer.nextToken() 174 ## if token [all...] |
/external/icu4c/test/intltest/ |
H A D | tokiter.h | 39 * Return the next token from this iterator. 40 * @return TRUE if a token was read, or FALSE if no more tokens 43 UBool next(UnicodeString& token, UErrorCode& ec); 46 * Return the one-based line number of the line of the last token 61 UBool nextToken(UnicodeString& token, UErrorCode& ec);
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
H A D | InReplyToParser.java | 79 Token token = lexer.getNextToken(); 85 token.getTokenValue() + "@" + secToken.getTokenValue()); 87 inReplyTo.setCallId(token.getTokenValue()); 101 token = lexer.getNextToken(); 107 token.getTokenValue() 111 inReplyTo.setCallId(token.getTokenValue());
|
H A D | SubscriptionStateParser.java | 78 Token token = lexer.getNextToken(); 79 subscriptionState.setState(token.getTokenValue()); 85 token = lexer.getNextToken(); 86 String value = token.getTokenValue(); 91 token = lexer.getNextToken(); 92 value = token.getTokenValue(); 98 token = lexer.getNextToken(); 99 value = token.getTokenValue(); 112 token = lexer.getNextToken(); 113 value = token [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
H A D | CommonToken.as | 45 /** What token number is this from 0..n-1 tokens; < 0 implies invalid index */ 48 /** The char position into the input buffer where this token starts */ 51 /** The char position into the input buffer where this token stops */ 60 var token:CommonToken = new CommonToken(type); 61 token._input = input; 62 token._channel = channel; 63 token._start = start; 64 token._stop = stop; 65 return token; 69 var token [all...] |
H A D | RecognitionException.as | 40 * exceptions are built with the expected token type. 57 * state can change before the exception is reported so current token index 59 * perhaps print an entire line of input not just a single token, for example. 67 /** What is index of token/char were we looking at when the error occurred? */ 72 * For parsers. Even when it's a tree parser, token might be set. 74 public var token:Token; variable 94 * for most recent token with line/col info, but notify getErrorHeader() 106 this.token = TokenStream(input).LT(1); 107 this.line = token.line; 108 this.charPositionInLine = token [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
H A D | RecognitionException.pm | 23 has 'token' => ( 69 my $token = $input->LT(1); 70 $new_args->{token} = $token; 71 $new_args->{line} = $token->get_line(); 72 $new_args->{char_position_in_line} = $token->get_char_position_in_line(); 94 return $self->token->get_type(); 117 return $self->token;
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
H A D | RecognitionException.java | 39 * exceptions are built with the expected token type. 56 * state can change before the exception is reported so current token index 58 * perhaps print an entire line of input not just a single token, for example. 66 /** What is index of token/char were we looking at when the error occurred? */ 71 * For parsers. Even when it's a tree parser, token might be set. 73 public Token token; field in class:RecognitionException 93 * for most recent token with line/col info, but notify getErrorHeader() 106 this.token = ((TokenStream)input).LT(1); 107 this.line = token.getLine(); 108 this.charPositionInLine = token [all...] |
/external/harfbuzz/contrib/tables/ |
H A D | unicode_parse_common.py | 18 def codepoints_parse(token): 21 def fromHex(token): 22 return int(token, 16) 23 parts = token.split('..') 29 raise ValueError(token)
|
/external/bison/src/ |
H A D | parse-gram.y | 104 %token GRAM_EOF 0 "end of file" 105 %token STRING "string" 106 %token INT "integer" 108 %token PERCENT_TOKEN "%token" 109 %token PERCENT_NTERM "%nterm" 111 %token PERCENT_TYPE "%type" 112 %token PERCENT_DESTRUCTOR "%destructor {...}" 113 %token PERCENT_PRINTER "%printer {...}" 115 %token PERCENT_UNIO [all...] |
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/font/plugins/ |
H A D | BitmapFontLoader.java | 75 String token = tokens[i]; 76 if (token.equals("lineHeight")){ 78 }else if (token.equals("base")){ 80 }else if (token.equals("scaleW")){ 82 }else if (token.equals("scaleH")){ 84 }else if (token.equals("pages")){ 95 String token = tokens[i]; 96 if (token.equals("id")){ 98 }else if (token.equals("file")){ 122 String token [all...] |
/external/antlr/antlr-3.4/runtime/C/src/ |
H A D | antlr3commontree.c | 61 static pANTLR3_BASE_TREE newFromToken (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TOKEN token); 108 // Factory space is good, we now want to initialize our cheating token 188 // We have our token pointer now, so we can initialize it to the predefined model. 226 ((pANTLR3_COMMON_TREE)(newTree->super))->token = tree->token; 233 newFromToken(pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TOKEN token) argument 246 ((pANTLR3_COMMON_TREE)(newTree->super))->token = token; 323 tree->token = NULL; // No token a 353 antlr3CommonTreeNewFromToken(pANTLR3_COMMON_TOKEN token) argument 448 pANTLR3_COMMON_TOKEN token; local 470 pANTLR3_COMMON_TOKEN token; local [all...] |
/external/mesa3d/src/glsl/glcpp/ |
H A D | glcpp-parse.y | 92 /* Note: This function adds a talloc_reference() to token. 97 _token_list_append (token_list_t *list, token_t *token); 167 %token COMMA_FINAL DEFINED ELIF_EXPANDED HASH HASH_DEFINE_FUNC HASH_DEFINE_OBJ HASH_ELIF HASH_ELSE HASH_ENDIF HASH_IF HASH_IFDEF HASH_IFNDEF HASH_UNDEF HASH_VERSION IDENTIFIER IF_EXPANDED INTEGER INTEGER_STRING NEWLINE OTHER PLACEHOLDER SPACE 168 %token PASTE 172 %type <token> preprocessing_token conditional_token 722 token_t *token; 724 token = talloc (ctx, token_t); 725 token->type = type; 726 token->value.str = talloc_steal (token, st [all...] |
/external/srec/srec/EventLog/include/ |
H A D | SR_EventLogImpl.h | 76 SREC_EVENTLOG_API ESR_ReturnCode SR_EventLog_Token(SR_EventLog* self, const LCHAR* token, const LCHAR *value); 78 SREC_EVENTLOG_API ESR_ReturnCode SR_EventLog_TokenInt(SR_EventLog* self, const LCHAR* token, int value); 80 SREC_EVENTLOG_API ESR_ReturnCode SR_EventLog_TokenUint16_t(SR_EventLog* self, const LCHAR* token, asr_uint16_t value); 82 SREC_EVENTLOG_API ESR_ReturnCode SR_EventLog_TokenSize_t(SR_EventLog* self, const LCHAR* token, size_t value); 84 SREC_EVENTLOG_API ESR_ReturnCode SR_EventLog_TokenBool(SR_EventLog* self, const LCHAR* token, ESR_BOOL value); 86 SREC_EVENTLOG_API ESR_ReturnCode SR_EventLog_TokenFloat(SR_EventLog* self, const LCHAR* token, float value);
|
/external/e2fsprogs/lib/blkid/ |
H A D | resolve.c | 56 * Locate a device name from a token (NAME=value string), or (name, value) 57 * pair. In the case of a token, value is ignored. If the "token" is not 61 char *blkid_get_devname(blkid_cache cache, const char *token, argument 69 if (!token) 78 printf("looking for %s%s%s %s\n", token, value ? "=" : "", 82 if (!strchr(token, '=')) { 83 ret = blkid_strdup(token); 86 blkid_parse_tag_string(token, &t, &v); 89 token [all...] |