Home
last modified time | relevance | path

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

123

/openbsd/usr.sbin/nsd/
H A Dconfiglexer.lex262 UDP { LEXOUT(("v(%s) ", yytext)); return VAR_UDP;}
329 LEXOUT(("v(%s) ", yytext));
334 LEXOUT(("v(%s) ", yytext));
339 LEXOUT(("v(%s) ", yytext));
346 char *str = yytext;
347 LEXOUT(("v(%s) ", yytext));
367 yytext[yyleng - 1] = '\0';
382 LEXOUT(("Iunquotedstr(%s) ", yytext));
383 config_start_include_glob(yytext);
394 yytext[yyleng - 1] = '\0';
[all …]
H A Dzlexer.lex184 tmp = strrchr(yytext, ';');
188 strip_string(yytext);
191 tmp = strrchr(yytext, ' ');
193 tmp = strrchr(yytext, '\t');
200 strip_string(yytext);
214 if (strlen(yytext) == 0) {
218 yytext, strerror(errno));
313 yytext[yyleng - 1] = '\0';
330 yytext[yyleng - 1] = '\0';
340 (int) yytext[0], (int) yytext[0]);
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/gas/
H A Ditbl-lex.l66 yytext[yyleng] = 0;
67 yylval.processor = strtoul (yytext+1, 0, 0);
71 yytext[yyleng] = 0;
72 yylval.num = strtoul (yytext, 0, 0);
76 yytext[yyleng] = 0;
77 yylval.num = strtoul (yytext, 0, 0);
81 yytext[yyleng] = 0;
82 yylval.str = strdup (yytext);
104 MDBG (("char = %x, %d\n", yytext[0], yytext[0]));
105 return yytext[0];
/openbsd/gnu/usr.bin/binutils/gas/
H A Ditbl-lex.l65 yytext[yyleng] = 0;
66 yylval.processor = strtoul (yytext+1, 0, 0);
70 yytext[yyleng] = 0;
71 yylval.num = strtoul (yytext, 0, 0);
75 yytext[yyleng] = 0;
76 yylval.num = strtoul (yytext, 0, 0);
80 yytext[yyleng] = 0;
81 yylval.str = strdup (yytext);
103 MDBG (("char = %x, %d\n", yytext[0], yytext[0]));
104 return yytext[0];
H A Ditbl-lex.c270 extern char *yytext;
271 #define yytext_ptr yytext
406 char *yytext; variable
738 yytext[yyleng] = 0;
747 yytext[yyleng] = 0;
756 yytext[yyleng] = 0;
765 yytext[yyleng] = 0;
766 yylval.str = strdup (yytext);
804 MDBG (("char = %x, %d\n", yytext[0], yytext[0]));
805 return yytext[0];
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dgengtype-lex.l71 tagstart = yytext + strlen (" typedef ");
91 update_lineno (yytext, yyleng);
118 update_lineno (yytext, yyleng);
134 update_lineno (yytext, yyleng);
149 update_lineno (yytext, yyleng);
158 typedef_p = yytext[1] == 't';
165 tagstart = yytext + 1;
176 update_lineno (yytext, yyleng);
182 update_lineno (yytext, yyleng);
188 update_lineno (yytext, yyleng);
[all …]
/openbsd/gnu/gcc/gcc/
H A Dgengtype-lex.l101 update_lineno (yytext, yyleng);
129 update_lineno (yytext, yyleng);
146 update_lineno (yytext, yyleng);
163 update_lineno (yytext, yyleng);
180 update_lineno (yytext, yyleng);
197 update_lineno (yytext, yyleng);
206 typedef_p = yytext[1] == 't';
213 tagstart = yytext + 1;
226 update_lineno (yytext, yyleng);
245 char *ptr = yytext;
[all …]
H A Dgengtype-lex.c340 extern char *yytext;
341 #define yytext_ptr yytext
1698 char *yytext; variable
2029 update_lineno (yytext, yyleng);
2161 typedef_p = yytext[1] == 't';
2168 tagstart = yytext + 1;
2218 char *ptr = yytext;
2376 char *ptr = yytext;
2444 { return yytext[0]; }
2455 return yytext[0];
[all …]
/openbsd/sys/dev/microcode/aic7xxx/
H A Daicasm_scan.l123 yptr = yytext;
261 return yytext[0];
266 yptr = yytext;
283 yptr = yytext;
306 yylval.str = yytext;
311 return yytext[0];
321 yytext[0]);
342 yptr = yytext;
378 yptr = yytext;
398 ycopy = strdup(yytext);
[all …]
/openbsd/sbin/wsconsctl/
H A Dmap_scan.l73 i = name2ksym(yytext);
75 errx(1, "%s: not a keysym", yytext);
87 yylval.ival = strtonum(yytext, 0, INT_MAX, &errstr);
89 errx(1, "%s: %s", yytext, errstr);
94 if (yytext[0] >= ' ' && yytext[0] <= '~')
95 errx(1, "%c: illegal character in input", yytext[0]);
97 errx(1, "%03o: illegal character in input", yytext[0] & 255);
/openbsd/gnu/usr.bin/binutils/ld/
H A Dldlex.l159 switch (yytext[yyleng - 1]) {
183 char *s = yytext;
193 if (yytext[yyleng - 1] == 'M'
199 || yytext[yyleng - 1]=='k')
203 else if (yytext[0] == '0'
204 && (yytext[1] == 'x'
205 || yytext[1] == 'X'))
355 yylval.name = xstrdup (yytext);
373 if (yytext[0] == '/' && yytext[1] == '*')
413 return *yytext;
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/ld/
H A Dldlex.l156 switch (yytext[yyleng - 1]) {
180 char *s = yytext;
190 if (yytext[yyleng - 1] == 'M'
196 || yytext[yyleng - 1]=='k')
200 else if (yytext[0] == '0'
201 && (yytext[1] == 'x'
202 || yytext[1] == 'X'))
361 yylval.name = xstrdup (yytext);
379 if (yytext[0] == '/' && yytext[1] == '*')
419 return *yytext;
[all …]
/openbsd/usr.bin/rdist/
H A Dgram.y231 static char yytext[INMAX]; in yylex() local
274 cp1 = yytext; in yylex()
275 cp2 = &yytext[INMAX - 1]; in yylex()
299 yylval.string = xstrdup(yytext); in yylex()
308 cp1 = yytext; in yylex()
309 cp2 = &yytext[INMAX - 1]; in yylex()
332 if (yytext[0] == '-' && yytext[1] == CNULL) in yylex()
338 switch (yytext[1]) { in yylex()
343 &yytext[2]); in yylex()
374 if (!strcmp(yytext, "install")) in yylex()
[all …]
/openbsd/usr.bin/fgen/
H A Dfgen.l164 ltoken.text = yytext; return &ltoken; }
166 "(" { ltoken.type = TOK_COMMENT; ltoken.text = yytext;
169 ":" { ltoken.type = TOK_COLON; ltoken.text = yytext;
175 \' { ltoken.type = TOK_TOKENIZE; ltoken.text = yytext;
245 [hH]# { ltoken.type = TOK_HEX; ltoken.text = yytext;
257 [iI][fF] { ltoken.type = TOK_IF; ltoken.text = yytext;
1121 token_err(yylineno, infile, yytext,
1253 token_err(yylineno, infile, yytext,
1731 infile, yylineno, yytext);
1814 infile, yylineno, yytext);
[all …]
/openbsd/usr.bin/lex/
H A Dscan.l43 #define ACTION_ECHO add_action( yytext )
67 yylval = (unsigned char) yytext[0]; \
73 strlcpy( nmstr, yytext, sizeof nmstr ); \
190 strlcpy( nmstr, yytext, sizeof nmstr );
233 [[:digit:]]+ linenum = myctoi( yytext );
455 yytext );
534 amt = strchr (yytext, '|') - yytext;
670 end_ch = yytext[yyleng-1];
759 [,*] return (unsigned char) yytext[0];
765 yytext );
[all …]
/openbsd/usr.bin/m4/
H A Dtokenizer.l60 . { return yytext[0]; }
69 l = strtol(yytext, NULL, 0);
72 m4_warnx("numeric overflow in expr: %s", yytext);
85 base = strtol(yytext+2, &next, 0); in parse_radix()
87 m4_warnx("error in number %s", yytext); in parse_radix()
100 m4_warnx("error in number %s", yytext); in parse_radix()
/openbsd/lib/libpcap/
H A Dscanner.l204 bpf_error("%s not supported", yytext);
248 [+\-*/:\[\]!<>()&|=] return yytext[0];
255 {N} { yylval.i = stoi((char *)yytext); return NUM; }
257 yylval.s = sdup((char *)yytext); return HID; }
266 if (getaddrinfo(yytext, NULL, &hints, &res))
267 bpf_error("bogus IPv6 address %s", yytext);
269 yylval.e = sdup((char *)yytext); return HID6;
301 yylval.s = sdup((char *)yytext); return ID; }
305 size_t len = strlen(yytext) * 4 + 1;
308 strnvis(v, yytext, len, 0);
[all …]
/openbsd/usr.bin/mklocale/
H A Dlex.l53 \'.\' { yylval.rune = (unsigned char)yytext[1];
71 0x{XDIGIT}+ { yylval.rune = strtoul(yytext, 0, 16);
73 0{ODIGIT}+ { yylval.rune = strtoul(yytext, 0, 8);
75 {DIGIT}+ { yylval.rune = strtoul(yytext, 0, 10);
133 \".*\" { char *e = yytext + 1;
161 . { printf("Lex is skipping '%s'\n", yytext); }
/openbsd/gnu/usr.bin/binutils/binutils/
H A Ddeflex.l61 [0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0);
65 yylval.id = xstrdup (yytext);
70 yylval.id = xstrdup (yytext+1);
76 yylval.id = xstrdup (yytext+1);
H A Dsyslex.l40 yylval.s = malloc(strlen (yytext));
41 strcpy(yylval.s, yytext+1);
47 yylval.i = strtol(yytext,0,16);
52 yylval.i = atoi(yytext);
H A Drclex.l160 s = strchr (yytext, '"');
184 cpp_line (yytext);
188 yylval.i.val = strtoul (yytext, 0, 0);
194 yylval.i.val = strtoul (yytext, 0, 0);
203 s = handle_quotes (yytext, &length);
226 s = get_string (strlen (yytext) + 1);
227 strcpy (s, yytext);
234 . { MAYBE_RETURN (*yytext); }
/openbsd/gnu/usr.bin/binutils-2.17/binutils/
H A Ddeflex.l63 [0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0);
67 yylval.id = xstrdup (yytext);
72 yylval.id = xstrdup (yytext+1);
78 yylval.id = xstrdup (yytext+1);
H A Drclex.l163 s = strchr (yytext, '"');
187 cpp_line (yytext);
191 yylval.i.val = strtoul (yytext, 0, 0);
197 yylval.i.val = strtoul (yytext, 0, 0);
206 s = handle_quotes (yytext, &length);
229 s = get_string (strlen (yytext) + 1);
230 strcpy (s, yytext);
237 . { MAYBE_RETURN (*yytext); }
/openbsd/games/atc/
H A Dlex.l52 [0-9]+ { yylval.ival = atoi(yytext); return(ConstOp); }
61 [wedcxzaq] { yylval.cval = *yytext; return (DirOp); }
65 . { return *yytext; }
/openbsd/gnu/usr.bin/binutils-2.17/gas/config/
H A Dbfin-lex.l102 [rR][0-7] return parse_reg (&yylval.reg, T_REG_R, yytext);
109 [pP][0-5]"."[lLhH] return parse_halfreg (&yylval.reg, T_REG_P, yytext);
110 [pP][0-5] return parse_reg (&yylval.reg, T_REG_P, yytext);
125 [mM][0-3] return parse_reg (&yylval.reg, T_REG_M, yytext);
144 [lL][0-3] return parse_reg (&yylval.reg, T_REG_L, yytext);
156 [iI][0-3] return parse_reg (&yylval.reg, T_REG_I, yytext);
209 [bB][0-3] return parse_reg (&yylval.reg, T_REG_B, yytext);
299 yylval.value = parse_int (&yytext);
303 yylval.symbol = symbol_find_or_make (yytext);
309 char *ref = strdup (yytext);
[all …]

123