Home
last modified time | relevance | path

Searched refs:yytext (Results 1 – 25 of 32) sorted by relevance

12

/external/mesa3d/src/mesa/program/
Dprogram_lexer.l48 return handle_ident(yyextra, yytext, yylval); \
67 yytext + len, \
72 return handle_ident(yyextra, yytext, yylval); \
331 [_a-zA-Z$][_a-zA-Z0-9$]* { return handle_ident(yyextra, yytext, yylval); }
336 yylval->integer = strtol(yytext, NULL, 10);
340 yylval->real = _mesa_strtof(yytext, NULL);
344 yylval->real = _mesa_strtof(yytext, NULL);
348 yylval->real = _mesa_strtof(yytext, NULL);
352 yylval->real = _mesa_strtof(yytext, NULL);
365 | mask_from_char(yytext[3]);
[all …]
/external/bison/src/
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, yyleng));
[all …]
Dflex-scanner.h54 #ifndef yytext
55 # define yytext FLEX_PREFIX (text) macro
80 obstack_grow (&obstack_for_string, yytext, yyleng)
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);
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; variable
285 [$@\[\]] obstack_escape (&obstack_for_string, yytext);
Dscan-skel.c26 #define yytext skel_text macro
/external/mesa3d/src/glsl/glcpp/
Dglcpp-lex.l124 yylval->str = ralloc_strdup (yyextra, yytext);
132 yylval->str = ralloc_strdup (yyextra, yytext);
182 for (p = yytext; !isalpha(p[0]); p++); /* skip " # " */
195 yylval->str = ralloc_strdup (yyextra, yytext);
201 yylval->str = ralloc_strdup (yyextra, yytext);
216 yylval->str = ralloc_strdup (yyextra, yytext);
221 yylval->str = ralloc_strdup (yyextra, yytext);
226 yylval->str = ralloc_strdup (yyextra, yytext);
271 yylval->str = ralloc_strdup (yyextra, yytext);
276 return yytext[0];
[all …]
/external/mdnsresponder/mDNSShared/
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/elfutils/libcpu/
Di386_lex.l66 {NUMBER} { i386_lval.num = strtoul (yytext, NULL, 10);
75 <INITIAL,MAIN>"{"{ID2}"}" { i386_lval.str = xstrndup (yytext + 1,
82 <MAIN>{ID} { i386_lval.str = xstrndup (yytext, yyleng);
99 <MAIN>. { i386_lval.ch = *yytext; return kCHAR; }
101 . { invalid_char (*yytext); }
/external/iproute2/tc/
Demp_ematch.l94 sscanf(yytext + 1, "%o", &res);
111 sscanf(yytext + 2, "%x", &res);
129 <lexstr>\\(.|\n) strbuf_append_char(yytext[1]);
130 <lexstr>[^\\\n\"]+ strbuf_append_charp(yytext);
137 return yylval.i = *yytext;
140 yylval.b = bstr_alloc(yytext);
/external/bison/m4/
Dflex.m410 # Check if lex declares yytext as a char * by default, not a char[].
24 # and whether Lex declares yytext as a char * by default.
51 f { unput (yytext[0]); }
55 extern char *yytext;
90 AC_CACHE_CHECK([whether yytext is a pointer],
92 [# POSIX says lex can declare yytext either as a pointer or an array; the
107 [Define to 1 if `lex' declares `yytext' as a `char *' by default,
/external/libpcap/
Dscanner.l242 bpf_error("%s not supported", yytext);
319 [+\-*/%:\[\]!<>()&|\^=] return yytext[0];
326 ${B} { yylval.e = pcap_ether_aton(((char *)yytext)+1);
330 {MAC} { yylval.e = pcap_ether_aton((char *)yytext);
334 {N} { yylval.i = stoi((char *)yytext); return NUM; }
336 yylval.s = sdup((char *)yytext); return HID; }
343 if (getaddrinfo(yytext, NULL, &hints, &res))
344 bpf_error("bogus IPv6 address %s", yytext);
347 yylval.s = sdup((char *)yytext); return HID6;
350 bpf_error("IPv6 address %s not supported", yytext);
[all …]
Dscanner.c25 #define yytext pcap_text macro
/external/selinux/checkpolicy/
Dpolicy_parse.y59 extern char yytext[];
758 { if (insert_id(yytext,0)) return -1; }
780 { if (insert_id(yytext,0)) return -1; }
836 { if (insert_id(yytext, 1)) return -1; }
848 { if (insert_id(yytext,0)) return -1; }
851 { if (insert_id(yytext,0)) return -1; }
853 { if (insert_id(yytext,0)) return -1; }
856 { if (insert_id(yytext,0)) return -1; }
858 { yytext[strlen(yytext) - 1] = '\0'; if (insert_id(yytext + 1,0)) return -1; }
861 { yytext[strlen(yytext) - 1] = '\0'; if (insert_id(yytext + 1,0)) return -1; }
[all …]
Dpolicy_scan.l59 \n.* { strncpy(linebuf[lno], yytext+1, 255);
261 #line[ ]1[ ]\"[^\n]*\" { set_source_file(yytext+9); }
262 #line[ ]{digit}+ { source_lineno = atoi(yytext+6)-1; }
283 "*" { return(yytext[0]); }
295 yytext,
311 yytext,
/external/mesa3d/src/glsl/
Dglsl_lexer.ll66 "Illegal use of reserved word `%s'", yytext); \
69 yylval->identifier = strdup(yytext); \
70 return classify_identifier(yyextra, yytext); \
126 literal_integer(yytext, yyleng, yyextra, yylval, yylloc, base)
157 char *ptr = yytext;
172 char *ptr = yytext;
211 yylval->identifier = strdup(yytext);
215 yylval->n = strtol(yytext, NULL, 10);
319 yylval->identifier = strdup(yytext);
358 yylval->real = glsl_strtod(yytext, NULL);
[all …]
/external/elfutils/src/
Dldlex.l51 = fwrite (yytext, yyleng, 1, yyout); } while (0)
152 ldlval.num |= attrib_convert (yytext[cnt++]);
173 ldlval.num = strtoumax (yytext, &endp, 0);
187 yytext, yyleng);
191 yytext, yyleng);
196 . { invalid_char (*yytext); }
/external/libnl/lib/route/
Dpktloc_grammar.l27 yylval->i = strtoul(yytext, NULL, 0);
31 "+" { return yylval->i = yytext[0]; }
38 yylval->s = strdup(yytext);
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliFlexLexer.java3104 return newToken(type, yytext(), hidden); in newToken()
3108 return newToken(type, yytext(), false); in newToken()
3123 return invalidToken(message, yytext()); in invalidToken()
3320 public final String yytext() { in yytext() method in smaliFlexLexer
3583 { sb.append((char)Integer.parseInt(yytext().substring(2,6), 16)); in yylex()
3684 { sb.append(yytext()); in yylex()
3685 setStringOrCharError("Invalid escape sequence " + yytext()); in yylex()
3702 { sb.append(yytext()); in yylex()
3878 { sb.append(yytext()); in yylex()
4012 { sb.append(yytext()); in yylex()
/external/bison/examples/calc++/
Dcalc++-scanner.cc424 extern char *yytext;
425 #define yytext_ptr yytext
545 char *yytext; variable
686 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
903 (long)yy_rule_linenum[yy_act], yytext );
906 yytext );
941 return yy::calcxx_parser::token_type (yytext[0]);
953 long n = strtol (yytext, NULL, 10);
964 yylval->sval = new std::string (yytext);
1849 yytext[yyleng] = (yy_hold_char); \
[all …]
Dcalc++-scanner.ll44 [-+*/] return yy::calcxx_parser::token_type (yytext[0]);
51 long n = strtol (yytext, NULL, 10);
61 yylval->sval = new std::string (yytext);
/external/fio/exp/
Dexpression-parser.l133 rc = sscanf(yytext, "%lf", &dval);
148 rc = sscanf(yytext, "%x", &intval);
163 rc = sscanf(yytext, "%d", &intval);
/external/smali/smali/src/main/jflex/
DsmaliLexer.jflex109 return newToken(type, yytext(), hidden);
113 return newToken(type, yytext(), false);
128 return invalidToken(message, yytext());
326 [^\r\n\"\\]+ { sb.append(yytext()); }
335 "\\u" {HexDigits} { sb.append((char)Integer.parseInt(yytext().substring(2,6), 16)); }
338 sb.append(yytext());
343 sb.append(yytext());
344 setStringOrCharError("Invalid escape sequence " + yytext());
363 [^\r\n'\\]+ { sb.append(yytext()); }
372 "\\u" {HexDigits} { sb.append((char)Integer.parseInt(yytext().substring(2,6), 16)); }
[all …]
/external/ipsec-tools/src/racoon/
Dcftoken.l84 "begin <%d>%s\n", yy_start, yytext);
/external/testng/ant/3rdparty/
DDTDDoc.jarMETA-INF/ META-INF/MANIFEST.MF DTDDoc/ DTDDoc/AntLogger.class AntLogger ...

12