Home
last modified time | relevance | path

Searched refs:yylval (Results 1 – 25 of 44) sorted by relevance

12

/external/libpcap/
Dscanner.l400 ${B} { yylval->e = pcap_ether_aton(((char *)yytext)+1);
401 if (yylval->e == NULL)
404 {MAC} { yylval->e = pcap_ether_aton((char *)yytext);
405 if (yylval->e == NULL)
408 {N} { yylval->i = stoi((char *)yytext); return NUM; }
410 yylval->s = sdup(yyextra, (char *)yytext); return HID; }
421 yylval->s = sdup(yyextra, (char *)yytext); return HID6;
428 icmptype { yylval->i = 0; return NUM; }
429 icmpcode { yylval->i = 1; return NUM; }
430 icmp-echoreply { yylval->i = 0; return NUM; }
[all …]
Dscanner.c3035 # define yylval yyg->yylval_r macro
3223 yylval = yylval_param;
3917 { yylval->e = pcap_ether_aton(((char *)yytext)+1);
3918 if (yylval->e == NULL)
3925 { yylval->e = pcap_ether_aton((char *)yytext);
3926 if (yylval->e == NULL)
3933 { yylval->i = stoi((char *)yytext); return NUM; }
3939 yylval->s = sdup(yyextra, (char *)yytext); return HID; }
3954 yylval->s = sdup(yyextra, (char *)yytext); return HID6;
3969 { yylval->i = 0; return NUM; }
[all …]
/external/mesa3d/src/mesa/program/
Dprogram_lexer.l48 return handle_ident(yyextra, yytext, yylval); \
68 & yylval->temp_inst)) { \
69 yylval->temp_inst.Opcode = OPCODE_ ## opcode; \
72 return handle_ident(yyextra, yytext, yylval); \
172 yylval->integer = at_address;
181 TEMP { yylval->integer = at_temp; return TEMP; }
307 [_a-zA-Z$][_a-zA-Z0-9$]* { return handle_ident(yyextra, yytext, yylval); }
312 yylval->integer = strtol(yytext, NULL, 10);
316 yylval->real = _mesa_strtof(yytext, NULL);
320 yylval->real = _mesa_strtof(yytext, NULL);
[all …]
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DTokenizer.l132 *yylval = "Integer overflow on line number";
144 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);
[all …]
DTokenizer.cpp1045 # define yylval yyg->yylval_r macro
1330 yylval = yylval_param;
1449 *yylval = "Integer overflow on line number";
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);
[all …]
DExpressionParser.cpp680 yylval = (Value); \
1104 YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); in yyparse()
1263 yychar = yylex (&yylval, context); in yyparse()
1274 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); in yyparse()
1297 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); in yyparse()
1304 *++yyvsp = yylval; in yyparse()
1797 yytoken, &yylval, context); in yyparse()
1860 *++yyvsp = yylval; in yyparse()
1902 yytoken, &yylval, context); in yyparse()
/external/libnl/lib/route/cls/
Dematch_grammar.l38 yylval->q.len = 32;
39 if (!(yylval->q.data = calloc(1, yylval->q.len)))
42 yylval->q.index = 0;
47 memcpy(yylval->q.data + yylval->q.index, yytext,
49 yylval->q.index += strlen(yytext);
60 yylval->i = strtoul(yytext, NULL, 0);
72 "&&" { yylval->i = TCF_EM_REL_AND; return LOGIC; }
74 "||" { yylval->i = TCF_EM_REL_OR; return LOGIC; }
78 [cC][mM][pP] { yylval->i = TCF_EM_CMP; return EMATCH_CMP; }
79 [pP][aA][tT][tT][eE][rR][nN] { yylval->i = TCF_EM_NBYTE; return EMATCH_NBYTE; }
[all …]
/external/libnl/lib/route/
Dpktloc_grammar.l28 yylval->i = strtoul(yytext, NULL, 0);
32 "+" { return yylval->i = yytext[0]; }
34 [uU]8 { yylval->i = TCF_EM_ALIGN_U8; return ALIGN; }
35 [uU]16 { yylval->i = TCF_EM_ALIGN_U16; return ALIGN; }
36 [uU]32 { yylval->i = TCF_EM_ALIGN_U32; return ALIGN; }
39 [eE][tT][hH] { yylval->i = TCF_LAYER_LINK; return LAYER; }
41 [iI][pP] { yylval->i = TCF_LAYER_NETWORK; return LAYER; }
43 [tT][cC][pP] { yylval->i = TCF_LAYER_TRANSPORT; return LAYER; }
47 yylval->s = strdup(yytext);
48 if (yylval->s == NULL)
/external/one-true-awk/
Dlex.c32 extern YYSTYPE yylval;
193 yylval.cp = setsymtab(buf, tostring(buf), atof(buf), CON|NUM, symtab); in yylex()
198 yylval.i = c; in yylex()
237 input(); yylval.i = NE; RET(NE); in yylex()
239 input(); yylval.i = NOTMATCH; RET(MATCHOP); in yylex()
243 yylval.i = MATCH; in yylex()
247 input(); yylval.i = LE; RET(LE); in yylex()
249 yylval.i = LT; RET(LT); in yylex()
253 input(); yylval.i = EQ; RET(EQ); in yylex()
255 yylval.i = ASSIGN; RET(ASGNOP); in yylex()
[all …]
/external/dtc/
Ddtc-lexer.l113 yylval.data = data_copy_escape_string(yytext+1,
158 yylval.labelref = xstrdup(yytext);
159 yylval.labelref[yyleng-1] = '\0';
168 yylval.integer = strtoull(yytext, &e, 0);
192 yylval.integer = 0;
194 yylval.integer = (unsigned char)d.val[0];
208 yylval.labelref = xstrdup(yytext+1);
215 yylval.labelref = xstrdup(yytext+2);
220 yylval.byte = strtol(yytext, NULL, 16);
221 DPRINT("Byte: %02x\n", (int)yylval.byte);
[all …]
/external/u-boot/scripts/dtc/
Ddtc-lexer.l113 yylval.data = data_copy_escape_string(yytext+1,
158 yylval.labelref = xstrdup(yytext);
159 yylval.labelref[yyleng-1] = '\0';
168 yylval.integer = strtoull(yytext, &e, 0);
192 yylval.integer = 0;
194 yylval.integer = (unsigned char)d.val[0];
208 yylval.labelref = xstrdup(yytext+1);
215 yylval.labelref = xstrdup(yytext+2);
220 yylval.byte = strtol(yytext, NULL, 16);
221 DPRINT("Byte: %02x\n", (int)yylval.byte);
[all …]
/external/mdnsresponder/mDNSShared/
Ddnsextd_lexer.l24 extern YYSTYPE yylval;
75 \* 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/iproute2/tc/
Demp_ematch.l8 #define yylval ematch_lval macro
86 yylval.b = bstr_new(strbuf, strbuf_index);
87 yylval.b->quoted = 1;
137 return yylval.i = *yytext;
140 yylval.b = bstr_alloc(yytext);
141 if (yylval.b == NULL)
Demp_ematch.yacc.c69 #define yylval ematch_lval macro
595 yylval = (Value); \
1075 YYSTYPE yylval; variable
1275 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); in yyparse()
1298 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); in yyparse()
1305 *++yyvsp = yylval; in yyparse()
1535 yytoken, &yylval, &yylloc); in yyparse()
1599 *++yyvsp = yylval; in yyparse()
1646 yytoken, &yylval, &yylloc); in yyparse()
/external/mksh/src/
Dsyn.c196 iop = yylval.iop; in synio()
202 yylval.cp = wdcopy(IONDELIM_delim, ATEMP); in synio()
207 iop->delim = yylval.cp; in synio()
216 iop->ioname = yylval.cp; in synio()
331 is_wdvarassign(yylval.cp)) in get_command()
332 XPput(vars, yylval.cp); in get_command()
334 XPput(args, yylval.cp); in get_command()
339 is_wdvarassign(yylval.cp)) { in get_command()
359 XPput(args, yylval.cp); in get_command()
424 XPput(args, yylval.cp); in get_command()
[all …]
/external/mesa3d/src/compiler/glsl/
Dglsl_lexer.ll85 return classify_identifier(yyextra, yytext, yyleng, yylval); \
98 yylval->type = gtype; \
106 return classify_identifier(yyextra, yytext, yyleng, yylval); \
142 yylval->type = gtype; \
145 return classify_identifier(yyextra, yytext, yyleng, yylval); \
205 literal_integer(yytext, yyleng, yyextra, yylval, yylloc, base)
318 yylval->identifier = id;
322 yylval->n = strtol(yytext, NULL, 10);
326 yylval->n = 0;
336 bool { yylval->type = glsl_type::bool_type; return BASIC_TYPE_TOK; }
[all …]
/external/swiftshader/src/OpenGL/compiler/
Dglslang.l138 "true" { yylval->lex.b = true; return(BOOLCONSTANT); }
139 "false" { yylval->lex.b = false; return(BOOLCONSTANT); }
255 yylval->lex.string = NewPoolTString(yytext);
265 yylval->lex.string = NewPoolTString(yytext);
325 yylval->lex.string = NewPoolTString(yytext);
394 yylval->lex.string = NewPoolTString(yytext);
433 yylval->lex.symbol = symbol; in check_type()
477 yylval->lex.string = NewPoolTString(yytext); in ES2_identifier_ES3_keyword()
495 if (!atou_clamp(yytext, &(yylval->lex.u))) in uint_constant()
512 if (!atof_clamp(yytext, &(yylval->lex.f))) in floatsuffix_check()
[all …]
Dglslang_lex.cpp1258 # define yylval yyg->yylval_r macro
1543 yylval = yylval_param;
1774 { yylval->lex.b = true; return(BOOLCONSTANT); }
1778 { yylval->lex.b = false; return(BOOLCONSTANT); }
2024 yylval->lex.string = NewPoolTString(yytext);
2036 yylval->lex.string = NewPoolTString(yytext);
2091 yylval->lex.string = NewPoolTString(yytext);
2327 yylval->lex.string = NewPoolTString(yytext);
3388 return yylval; in yyget_lval()
3396 yylval = yylval_param; in yyset_lval()
[all …]
/external/libxkbcommon/xkbcommon/src/xkbcomp/
Dscanner.c62 _xkbcommon_lex(YYSTYPE *yylval, struct scanner *s) in _xkbcommon_lex() argument
110 yylval->str = strdup(s->buf); in _xkbcommon_lex()
111 if (!yylval->str) in _xkbcommon_lex()
125 yylval->atom = xkb_atom_intern(s->ctx, s->buf, s->buf_pos - 1); in _xkbcommon_lex()
161 yylval->str = strdup(s->buf); in _xkbcommon_lex()
162 if (!yylval->str) in _xkbcommon_lex()
168 if (number(s, &yylval->num, &tok)) { in _xkbcommon_lex()
Dparser-priv.h36 _xkbcommon_lex(YYSTYPE *yylval, struct scanner *scanner);
/external/iproute2/misc/
Dssfilter.y293 yylval = (void*)parse_devcond(curtok); in yylex()
294 if (yylval == NULL) { in yylex()
301 yylval = (void*)parse_markmask(curtok); in yylex()
302 if (yylval == NULL) { in yylex()
308 yylval = (void*)parse_hostcond(curtok, tok_type == SPORT || tok_type == DPORT); in yylex()
309 if (yylval == NULL) { in yylex()
/external/u-boot/scripts/kconfig/
Dzconf.l108 yylval.id = id;
112 yylval.string = text;
143 yylval.id = id;
147 yylval.string = text;
/external/e2fsprogs/intl/
Dplural.c9 #define yylval __gettextlval macro
469 yylval = (Value); \
504 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
506 # define YYLEX yylex (&yylval, &yylloc)
510 # define YYLEX yylex (&yylval, YYLEX_PARAM)
512 # define YYLEX yylex (&yylval)
651 YYSTYPE yylval; \
897 YYPRINT (stderr, yychar, yylval); in yyparse()
938 *++yyvsp = yylval; in yyparse()
1275 *++yyvsp = yylval; in yyparse()
/external/iptables/iptables/
Dxtables-config-syntax.l37 {integer} { yylval.val = atoi(yytext); return T_INTEGER; }
38 {string} { yylval.string = strdup(yytext); return T_STRING; }
/external/ipsec-tools/src/libipsec/
Dpolicy_token.l60 #define yylval __libipseclval /* XXX */ macro

12