Home
last modified time | relevance | path

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

12

/external/dtc/
Ddtc-lexer.l96 DPRINT("String: %s\n", yytext);
97 yylval.data = data_copy_escape_string(yytext+1,
148 DPRINT("Label: %s\n", yytext);
149 yylval.labelref = xstrdup(yytext);
156 DPRINT("Integer Literal: '%s'\n", yytext);
159 yylval.integer = strtoull(yytext, &e, 0);
163 yytext);
168 yytext);
178 DPRINT("Character literal: %s\n", yytext);
180 d = data_copy_escape_string(yytext+1, yyleng-2);
[all …]
Dconvert-dtsv0-lexer.l84 if (*yytext == 'b')
86 else if (*yytext == 'o')
88 else if (*yytext == 'd')
99 val = strtoull(yytext, NULL, cbase);
141 <INITIAL>"&/"{PATHCHAR}+ fprintf(yyout, "&{/%s}", yytext + 2);
152 last_name = xstrdup(yytext);
170 if (yytext[0] == '[') {
173 if ((yytext[0] == '{')
174 || (yytext[0] == ';')) {
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DTokenizer.l144 yylval->assign(1, yytext[0]);
149 yylval->assign(yytext, yyleng);
154 yylval->assign(yytext, yyleng);
159 yylval->assign(yytext, yyleng);
166 yylval->assign(yytext, yyleng);
171 yylval->assign(yytext, yyleng);
175 yylval->assign(yytext, yyleng);
179 yylval->assign(yytext, yyleng);
183 yylval->assign(yytext, yyleng);
187 yylval->assign(yytext, yyleng);
[all …]
DTokenizer.cpp475 #define yytext yyg->yytext_r macro
1199 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1466 yylval->assign(1, yytext[0]);
1473 yylval->assign(yytext, yyleng);
1480 yylval->assign(yytext, yyleng);
1487 yylval->assign(yytext, yyleng);
1496 yylval->assign(yytext, yyleng);
1503 yylval->assign(yytext, yyleng);
1510 yylval->assign(yytext, yyleng);
1517 yylval->assign(yytext, yyleng);
[all …]
/external/angle/src/compiler/preprocessor/
Dpreprocessor.l144 yylval->assign(1, yytext[0]);
149 yylval->assign(yytext, yyleng);
154 yylval->assign(yytext, yyleng);
159 yylval->assign(yytext, yyleng);
166 yylval->assign(yytext, yyleng);
171 yylval->assign(yytext, yyleng);
175 yylval->assign(yytext, yyleng);
179 yylval->assign(yytext, yyleng);
183 yylval->assign(yytext, yyleng);
187 yylval->assign(yytext, yyleng);
[all …]
Dpreprocessor_lex_autogen.cpp367 #define yytext yyg->yytext_r macro
904 if (fwrite(yytext, (size_t)yyleng, 1, yyout)) \
1123 yylval->assign(1, yytext[0]);
1131 yylval->assign(yytext, yyleng);
1138 yylval->assign(yytext, yyleng);
1145 yylval->assign(yytext, yyleng);
1154 yylval->assign(yytext, yyleng);
1161 yylval->assign(yytext, yyleng);
1168 yylval->assign(yytext, yyleng);
1175 yylval->assign(yytext, yyleng);
[all …]
/external/mesa3d/src/freedreno/afuc/
Dlexer.l43 0|[1-9][0-9]* yylval.num = strtoul(yytext, NULL, 0); return T_INT;
44 "0x"[0-9a-fA-F]* yylval.num = strtoul(yytext, NULL, 0); return T_HEX;
46 "$"[0-9a-fA-F][0-9a-fA-F] yylval.num = parse_reg(yytext); return T_REGISTER;
47 "$"[a-zA-Z][a-zA-Z0-9]* yylval.num = parse_reg(yytext); return T_REGISTER;
48 "b"[0-9][0-9]* yylval.num = parse_bit(yytext); return T_BIT;
49 "@"[a-zA-Z_][a-zA-Z0-9_]* yylval.num = parse_control_reg(yytext); return T_CONTROL_REG;
50 "#"[a-zA-Z_][a-zA-Z0-9_]* yylval.str = strdup(yytext+1); return T_LABEL_REF; /* label refe…
51 [a-zA-Z_][a-zA-Z0-9_]*":" yylval.str = parse_label_decl(yytext); return T_LABEL_DECL; /* la…
52 "["[0-9a-fA-F][0-9a-fA-F]*"]" yylval.num = parse_literal(yytext); return T_LITERAL;
89 "(xmov"[1-3]")" yylval.num = yytext[5] - '\0'; return T_XMOV;
[all …]
/external/mesa3d/src/mesa/program/
Dprogram_lexer.l53 return handle_ident(yyextra, yytext, yylval); \
72 yytext + len, \
77 return handle_ident(yyextra, yytext, yylval); \
312 [_a-zA-Z$][_a-zA-Z0-9$]* { return handle_ident(yyextra, yytext, yylval); }
317 yylval->integer = strtol(yytext, NULL, 10);
321 yylval->real = _mesa_strtof(yytext, NULL);
325 yylval->real = _mesa_strtof(yytext, NULL);
329 yylval->real = _mesa_strtof(yytext, NULL);
333 yylval->real = _mesa_strtof(yytext, NULL);
346 | mask_from_char(yytext[3]);
[all …]
/external/igt-gpu-tools/assembler/
Dlex.l53 yylineno = atoi (yytext) - 1;
58 memmove (name, yytext + 1, yyleng - 2);
208 yylval.integer = atoi(yytext + 3);
212 yylval.integer = atoi(yytext + 1);
216 yylval.integer = atoi(yytext + 1);
223 yylval.integer = atoi(yytext + 4);
227 yylval.integer = atoi(yytext + 2);
231 yylval.integer = atoi(yytext + 3);
236 yylval.integer = atoi(yytext + 3);
241 yylval.integer = atoi(yytext + 1);
[all …]
/external/mesa3d/src/freedreno/ir3/
Dir3_lexer.l73 [0-9]+"."[0-9]+ ir3_yylval.flt = strtod(yytext, NULL); return T_FLOAT;
74 [0-9]* ir3_yylval.num = strtoul(yytext, NULL, 0); return T_INT;
75 "0x"[0-9a-fA-F]* ir3_yylval.num = strtoul(yytext, NULL, 0); return T_HEX;
96 "(rpt"[0-7]")" ir3_yylval.num = strtol(yytext+4, NULL, 10); return T_RPT;
97 "(nop"[0-7]")" ir3_yylval.num = strtol(yytext+4, NULL, 10); return T_NOP;
98 "("[x]?[y]?[z]?[w]?")" ir3_yylval.num = parse_wrmask(yytext); return T_WRMASK;
100 [h]?"r"[0-9]+"."[xyzw] ir3_yylval.num = parse_reg(yytext); return T_REGISTER;
101 [h]?"c"[0-9]+"."[xyzw] ir3_yylval.num = parse_reg(yytext); return T_CONSTANT;
102 "a0."[xyzw] ir3_yylval.num = parse_reg(yytext); return T_A0;
103 "p0."[xyzw] ir3_yylval.num = parse_reg(yytext); return T_P0;
[all …]
/external/swiftshader/src/OpenGL/compiler/
Dglslang.l255 yylval->lex.string = NewPoolTString(yytext);
265 yylval->lex.string = NewPoolTString(yytext);
325 yylval->lex.string = NewPoolTString(yytext);
394 yylval->lex.string = NewPoolTString(yytext);
401 <*>. { context->warning(*yylloc, "Unknown char", yytext, ""); return 0; }
425 TSymbol* symbol = yyextra->symbolTable.find(yytext, yyextra->getShaderVersion()); in check_type()
440 yyextra->error(*yylloc, "Illegal use of reserved word", yytext, ""); in reserved_word()
477 yylval->lex.string = NewPoolTString(yytext); in ES2_identifier_ES3_keyword()
490 … context->error(*yylloc, "Unsigned integers are unsupported prior to GLSL ES 3.00", yytext, ""); in uint_constant()
495 if (!atou_clamp(yytext, &(yylval->lex.u))) in uint_constant()
[all …]
/external/angle/src/compiler/translator/
Dglslang.l312 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
322 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
381 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
450 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
455 yyextra->error(*yylloc, "Illegal character at fieldname start", yytext);
486 …const TSymbol* symbol = yyextra->symbolTable.find(ImmutableString(yytext, yyleng), yyextra->getSha… in check_type()
498 yyextra->error(*yylloc, "Illegal use of reserved word", yytext); in reserved_word()
545 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); in ES3_reserved_ES3_1_keyword()
564 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); in ES3_keyword()
595 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); in ES3_1_keyword()
[all …]
Dglslang_lex_autogen.cpp183 #define yytext yyg->yytext_r macro
248 if (yytext[yyl] == '\n') \
1112 if (fwrite(yytext, (size_t)yyleng, 1, yyout)) \
1283 if (yytext[yyl] == '\n')
1861 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
1873 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
1926 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
2109 yylval->lex.string = AllocatePoolCharArray(yytext, yyleng);
2119 yyextra->error(*yylloc, "Illegal character at fieldname start", yytext);
2941 yytext[yyleng] = yyg->yy_hold_char; \
[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/ltp/pan/
Dscan.l206 key = yytext;
207 cont = strchr(yytext, '=');
210 if(yytext[yyleng-1] == '"')
211 yytext[yyleng-1] = '\0';
223 key = yytext;
224 cont = strchr(yytext, '=');
244 printf("TEXT_LINE: %s\n", yytext);
254 printf("CUTS Result: %s\n", yytext);
265 printf("CUTS Result: %s\n", yytext);
386 yylineno, yytext, ps->name, scan_mode, exp_mode);
/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/libiio/src/iiod/
Dlexer.l104 struct iio_device *dev = iio_context_find_device(pdata->ctx, yytext);
128 pdata->channel_is_output = yytext[0] == 'o' || yytext[0] == 'O';
138 yytext, pdata->channel_is_output);
146 yylval->value = strtol(yytext, NULL, 10);
155 yylval->word = strdup(yytext);
/external/mesa3d/src/intel/tools/
Di965_lex.l43 memmove(name, yytext + 1, yyleng - 2);
198 yylval.integer = strtoul(yytext, NULL, 10);
211 yylval.integer = strtoul(yytext, NULL, 10);
250 yylval.integer = strtoul(yytext, NULL, 10);
318 "acc"[0-9]+ { yylval.integer = atoi(yytext + 3); return ACCREG; }
327 "f"[0|1] { BEGIN(CHANNEL); yylval.integer = atoi(yytext + 1); return FLAGREG; }
331 m[0-9]+ { yylval.integer = atoi(yytext + 1); BEGIN(REG); return MSGREG; }
334 sr[0-9]+ { yylval.integer = atoi(yytext + 2); return STATEREG; }
349 yylval.integer = atoi(yytext + 1);
353 "mask"[0-9]+ { yylval.integer = atoi(yytext + 4); return MASKREG; }
[all …]
/external/selinux/checkpolicy/
Dpolicy_parse.y60 extern char yytext[];
788 { if (insert_id(yytext,0)) return -1; }
810 { if (insert_id(yytext,0)) return -1; }
866 { if (insert_id(yytext, 1)) return -1; }
878 { if (insert_id(yytext,0)) return -1; }
881 { if (insert_id(yytext,0)) return -1; }
883 { if (insert_id(yytext,0)) return -1; }
886 { if (insert_id(yytext,0)) return -1; }
888 { yytext[strlen(yytext) - 1] = '\0'; if (insert_id(yytext + 1,0)) return -1; }
891 { yytext[strlen(yytext) - 1] = '\0'; if (insert_id(yytext + 1,0)) return -1; }
[all …]
Dpolicy_scan.l60 \n.* { strncpy(linebuf[lno], yytext+1, 255);
270 #line[ ]1[ ]\"[^\n]*\" { set_source_file(yytext+9); }
271 #line[ ]{digit}+ { source_lineno = atoi(yytext+6)-1; }
292 "*" { return(yytext[0]); }
304 yytext,
320 yytext,
/external/libnl/lib/route/cls/
Dematch_grammar.l51 memcpy(yylval->q.data + yylval->q.index, yytext,
52 strlen(yytext));
53 yylval->q.index += strlen(yytext);
64 yylval->i = strtoul(yytext, NULL, 0);
161 yylval->s = strdup(yytext);
/external/libnl/lib/route/
Dpktloc_grammar.l32 yylval->i = strtoul(yytext, NULL, 0);
36 "+" { return yylval->i = yytext[0]; }
51 yylval->s = strdup(yytext);
/external/libpcap/
Dscanner.l387 [+\-*/%:\[\]!<>()&|\^=] return yytext[0];
394 ${B} { yylval->s = sdup(yyextra, yytext); return AID; }
395 {MAC} { yylval->s = sdup(yyextra, yytext); return EID; }
396 {N} { return stou(yytext, yylval, yyextra); }
398 yylval->s = sdup(yyextra, (char *)yytext); return HID; }
405 if (getaddrinfo(yytext, NULL, &hints, &res)) {
406 bpf_set_error(yyextra, "bogus IPv6 address %s", yytext);
410 yylval->s = sdup(yyextra, (char *)yytext);
413 bpf_set_error(yyextra, "IPv6 address %s not supported", yytext);
418 {B}:+({B}:+)+ { bpf_set_error(yyextra, "bogus ethernet address %s", yytext); yylval->s = NULL; ret…
[all …]
/external/igt-gpu-tools/overlay/
Dtracepoint_format.leg27 { $$.string = strdup(yytext); }
29 { $$.string = strdup(yytext); }
31 { $$.integer = atoi(yytext); }

12