Searched refs:yytext (Results 1 - 25 of 30) sorted by relevance

12

/external/elfutils/libcpu/
H A Di386_lex.l63 {NUMBER} { i386_lval.num = strtoul (yytext, NULL, 10);
72 <INITIAL,MAIN>"{"{ID2}"}" { i386_lval.str = xstrndup (yytext + 1,
79 <MAIN>{ID} { i386_lval.str = xstrndup (yytext, yyleng);
96 <MAIN>. { i386_lval.ch = *yytext; return kCHAR; }
98 . { invalid_char (*yytext); }
H A Di386_lex.c21 #define yytext i386_text macro
/external/mdnsresponder/mDNSShared/
H A Ddnsextd_lexer.l75 \* yylval.string = strdup(yytext); return WILDCARD;
76 [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ yylval.string = strdup(yytext); return DOTTED_DECIMAL_ADDRESS;
77 [0123456789]+ yylval.number = atoi(yytext); return NUMBER;
78 [a-zA-Z0-9]+(\.[a-zA-Z0-9]+)* yylval.string = strdup(yytext); return HOSTNAME;
79 [a-zA-Z0-9\.]+([a-zA-Z0-9\.]+)* yylval.string = strdup(yytext); return DOMAINNAME;
80 \"([^"\\\r\n]*(\\.[^"\\\r\n]*)*)\" yylval.string = StripQuotes(yytext); return QUOTEDSTRING;
/external/bison/src/
H A Dflex-scanner.h47 /* It seems to be a nice "feature" of Flex that one cannot use yytext,
54 #ifndef yytext
55 # define yytext FLEX_PREFIX (text) macro
80 obstack_grow (&obstack_for_string, yytext, yyleng)
H A Dscan-skel.l82 yytext[yyleng-1] = '\0';
83 obstack_grow (&obstack_for_string, yytext, yyleng);
90 @[^@{}`(\n]* fail_for_invalid_at (yytext);
122 if (yytext[1] == ',')
134 @.? fail_for_invalid_at (yytext);
H A Dscan-gram.l53 #define YY_USER_ACTION location_compute (loc, &scanner_cursor, yytext, yyleng);
60 scanner_cursor.column -= mbsnwidth (yytext, yyleng, 0); \
161 handle_syncline (yytext + sizeof "#line " - 1, *loc);
222 complain_at (*loc, _("invalid directive: %s"), quote (yytext));
232 val->uniqstr = uniqstr_new (yytext);
239 val->integer = scan_integer (yytext, 10, *loc);
243 val->integer = scan_integer (yytext, 16, *loc);
250 complain_at (*loc, _("invalid identifier: %s"), quote (yytext));
272 obstack_grow (&obstack_for_string, yytext + 1, yyleng - 2);
296 quote_mem (yytext, yylen
[all...]
H A Dscan-code.l47 #define YY_USER_ACTION location_compute (loc, &loc->end, yytext, yyleng);
188 warn_at (*loc, _("stray '%s'"), yytext);
189 obstack_escape (&obstack_for_string, yytext);
193 obstack_escape (&obstack_for_string, yytext);
202 handle_action_dollar (self->rule, yytext, *loc);
209 handle_action_at (self->rule, yytext, *loc);
269 fetch_type_name (yytext + 1, &type_name, *loc)[-1] = 0;
285 [$@\[\]] obstack_escape (&obstack_for_string, yytext);
H A Dscan-skel.c26 #define yytext skel_text macro
/external/webkit/Tools/android/flex-2.5.4a/
H A Dyylex.c42 extern char *yytext;
183 fprintf( stderr, "%s ", yytext );
200 fprintf( stderr, "%s", yytext );
H A Dscan.l35 #define ACTION_ECHO add_action( yytext )
48 yylval = (unsigned char) yytext[0]; \
52 strcpy( nmstr, yytext ); \
139 strcpy( nmstr, yytext );
159 [[:digit:]]+ linenum = myctoi( yytext );
163 infilename = copy_string( yytext + 1 );
187 strcpy( (char *) nmdef, yytext );
280 strcpy( nmstr, yytext + 1 );
287 yytext );
404 strcpy( nmstr, yytext );
[all...]
H A DFlexLexer.h58 const char* YYText() { return yytext; }
88 char* yytext; member in class:FlexLexer
148 // yy_hold_char holds the character lost when yytext is formed.
H A Dinitscan.c128 /* Undo effects of setting up yytext. */ \
132 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
211 /* yy_hold_char holds the character lost when yytext is formed. */
268 extern char *yytext;
269 #define yytext_ptr yytext
277 * corresponding action - sets up yytext.
1242 char *yytext; variable
1278 #define ACTION_ECHO add_action( yytext )
1291 yylval = (unsigned char) yytext[0]; \
1295 strcpy( nmstr, yytext ); \
2577 CHECK_REJECT(yytext); variable
2585 CHECK_YYMORE(yytext); variable
[all...]
H A Dflex.skl134 /* Undo effects of setting up yytext. */ \
138 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
224 /* yy_hold_char holds the character lost when yytext is formed. */
279 %% yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here
289 * corresponding action - sets up yytext.
293 %% code to fiddle yytext and yyleng for yymore() goes here
296 %% code to copy yytext_ptr to yytext[] goes here, if %array
384 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
386 #define ECHO LexerOutput( yytext, yyleng )
435 /* Code executed at the beginning of each rule, after yytext an
[all...]
/external/webkit/Tools/android/flex-2.5.4a/MISC/MVS/
H A Dinitscan-mvs.c81 /* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
85 #define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
204 #define ACTION_ECHO fprintf( tmpactfl, "%s", yytext )
212 yylval = yytext[0]; \
216 (void) strcpy( nmstr, (char *) yytext ); \
254 * corresponding action - sets up yytext
257 yytext = yy_bp; \
271 /* undo effects of setting up yytext */ \
274 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
278 #define unput(c) yyunput( c, yytext )
331 YY_CHAR *yytext; variable
1515 ECHO; CHECK_REJECT(yytext); variable
1519 ECHO; CHECK_YYMORE(yytext); variable
1947 CHECK_REJECT(yytext); variable
1954 CHECK_YYMORE(yytext); variable
[all...]
/external/libpcap/
H A Dscanner.l192 bpf_error("%s not supported", yytext);
199 bpf_error("%s not supported", yytext);
242 bpf_error("%s not supported", yytext);
301 [+\-*/:\[\]!<>()&|=] return yytext[0];
308 ${B} { yylval.e = pcap_ether_aton(((char *)yytext)+1);
310 {N} { yylval.i = stoi((char *)yytext); return NUM; }
312 yylval.s = sdup((char *)yytext); return HID; }
313 {B}:{B}:{B}:{B}:{B}:{B} { yylval.e = pcap_ether_aton((char *)yytext);
321 if (getaddrinfo(yytext, NULL, &hints, &res))
322 bpf_error("bogus IPv6 address %s", yytext);
[all...]
/external/elfutils/src/
H A Dldlex.l59 = fwrite (yytext, yyleng, 1, yyout); } while (0)
160 ldlval.num |= attrib_convert (yytext[cnt++]);
181 ldlval.num = strtoumax (yytext, &endp, 0);
195 yytext, yyleng);
199 yytext, yyleng);
204 . { invalid_char (*yytext); }
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/
H A Dglslang.l176 yylval->lex.string = NewPoolTString(yytext);
180 0[xX]{H}+ { yylval->lex.i = strtol(yytext, 0, 0); return(INTCONSTANT); }
181 0{O}+ { yylval->lex.i = strtol(yytext, 0, 0); return(INTCONSTANT); }
182 0{D}+ { context->error(yylineno, "Invalid Octal number.", yytext, "", ""); context->recover(); return 0;}
183 {D}+ { yylval->lex.i = strtol(yytext, 0, 0); return(INTCONSTANT); }
185 {D}+{E} { yylval->lex.f = static_cast<float>(atof_dot(yytext)); return(FLOATCONSTANT); }
186 {D}+"."{D}*({E})? { yylval->lex.f = static_cast<float>(atof_dot(yytext)); return(FLOATCONSTANT); }
187 "."{D}+({E})? { yylval->lex.f = static_cast<float>(atof_dot(yytext)); return(FLOATCONSTANT); }
238 yylval->lex.string = NewPoolTString(yytext);
245 <*>. { context->warning(yylineno, "Unknown char", yytext, ""); retur
[all...]
H A Dglslang_lex.cpp142 #define yytext yyg->yytext_r macro
197 if ( yytext[yyl] == '\n' )\
205 /* Undo effects of setting up yytext. */ \
211 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
365 * corresponding action - sets up yytext.
912 #define ECHO fwrite( yytext, yyleng, 1, yyout )
984 /* Code executed at the beginning of each rule, after yytext and yyleng
1044 /* Support of yytext. */
1084 if ( yytext[yyl] == '\n' )
1453 yylval->lex.string = NewPoolTString(yytext);
[all...]
/external/smali/smali/src/main/java/org/jf/smali/
H A DsmaliFlexLexer.java2853 the source of the yytext() string */
2862 /** startRead marks the beginning of the yytext() string in the buffer */
2981 return newToken(type, yytext(), hidden);
2985 return newToken(type, yytext(), false);
3000 return invalidToken(message, yytext());
3197 public final String yytext() { method in class:smaliFlexLexer
3206 * It is equivalent to yytext().charAt(pos), but faster
3468 { sb.append((char)Integer.parseInt(yytext().substring(2,6), 16));
3560 { sb.append(yytext());
3561 setStringOrCharError("Invalid escape sequence " + yytext());
[all...]
/external/checkpolicy/
H A Dpolicy_parse.y59 extern char yytext[];
723 { if (insert_id(yytext,0)) return -1; }
779 { if (insert_id(yytext, 1)) return -1; }
791 { if (insert_id(yytext,0)) return -1; }
794 { if (insert_id(yytext,0)) return -1; }
796 { if (insert_id(yytext,0)) return -1; }
799 { if (insert_id(yytext,0)) return -1; }
802 { yytext[strlen(yytext) - 1] = '\0'; if (insert_id(yytext
[all...]
H A Dpolicy_scan.l59 \n.* { strncpy(linebuf[lno], yytext+1, 255);
248 #line[ ]1[ ]\"[^\n]*\" { set_source_file(yytext+9); }
249 #line[ ]{digit}+ { source_lineno = atoi(yytext+6)-1; }
270 "*" { return(yytext[0]); }
282 yytext,
298 yytext,
/external/bison/examples/calc++/
H A Dcalc++-scanner.cc224 /* Undo effects of setting up yytext. */ \
230 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
340 /* yy_hold_char holds the character lost when yytext is formed. */
406 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
424 extern char *yytext;
425 #define yytext_ptr yytext
437 * corresponding action - sets up yytext.
441 /* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
445 /* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
545 char *yytext; variable
[all...]
/external/ipsec-tools/src/racoon/
H A Dcftoken.l84 "begin <%d>%s\n", yy_start, yytext);
393 yytext++;
394 yylval.num = atoi(yytext);
400 char *p = yytext;
404 yytext++;
405 yylval.num = atoi(yytext);
412 yytext++;
418 memcpy(yylval.val->v, yytext, yylval.val->l);
576 yylval.num = strtol(yytext, &bp, 10);
597 memcpy(p, &yytext[
[all...]
/external/webkit/Source/WebCore/css/
H A DCSSParser.h309 UChar* yytext; member in class:WebCore::CSSParser
H A DCSSParser.cpp222 yytext = yy_c_buf_p = m_data;
6024 UChar* start = yytext;
6140 for (UChar* current = yytext; current < yytext + yyleng; ++current) {
6503 m_selectorListRange.start = yytext - m_data;
6510 UChar* listEnd = yytext;
6522 unsigned offset = yytext - m_data;
6523 if (*yytext == '{')
6532 unsigned offset = yytext - m_data;
6541 m_propertyRange.start = yytext
[all...]

Completed in 2228 milliseconds

12