Home
last modified time | relevance | path

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

1234

/freebsd-11-stable/contrib/dtc/
HDdtc-lexer.l121 DPRINT("String: %s\n", yytext);
122 yylval.data = data_copy_escape_string(yytext+1,
166 DPRINT("Label: %s\n", yytext);
167 yylval.labelref = xstrdup(yytext);
174 DPRINT("Integer Literal: '%s'\n", yytext);
177 yylval.integer = strtoull(yytext, &e, 0);
181 yytext);
186 yytext);
196 DPRINT("Character literal: %s\n", yytext);
198 d = data_copy_escape_string(yytext+1, yyleng-2);
[all …]
/freebsd-11-stable/contrib/amd/amd/
HDconf_tok.l73 # define ECHO __IGNORE(fwrite( yytext, yyleng, 1, yyout ))
130 dprintf("%8d: Left bracket \"%s\"\n", yytext);
131 conf_lval.strtype = xstrdup(yytext);
136 dprintf("%8d: Right bracket \"%s\"\n", yytext);
137 conf_lval.strtype = xstrdup(yytext);
142 dprintf("%8d: Equal \"%s\"\n", yytext);
143 conf_lval.strtype = xstrdup(yytext);
148 dprintf("%8d: Whitespace \"%s\"\n", yytext);
153 yytext[strlen((char *)yytext)-1] = '\0';
154 dprintf("%8d: Comment \"%s\"\n", yytext);
[all …]
/freebsd-11-stable/contrib/ntp/ntpd/
HDntp_scanner.c38 char yytext[MAX_LEXEME]; /* Buffer for storing the input text/lexeme */ variable
724 yytext[0] = (char)ch; in yylex()
725 yytext[1] = '\0'; in yylex()
737 yytext[i] = (char)ch; in yylex()
756 if (i >= COUNTOF(yytext)) in yylex()
769 yytext[i++] = (char)ch; in yylex()
770 if (i >= COUNTOF(yytext)) in yylex()
788 yytext[i] = '\0'; in yylex()
799 token = is_keyword(yytext, &followedby); in yylex()
812 } else if (is_integer(yytext)) { in yylex()
[all …]
/freebsd-11-stable/contrib/binutils/gas/
HDitbl-lex.l64 yytext[yyleng] = 0;
65 yylval.processor = strtoul (yytext+1, 0, 0);
69 yytext[yyleng] = 0;
70 yylval.num = strtoul (yytext, 0, 0);
74 yytext[yyleng] = 0;
75 yylval.num = strtoul (yytext, 0, 0);
79 yytext[yyleng] = 0;
80 yylval.str = strdup (yytext);
102 MDBG (("char = %x, %d\n", yytext[0], yytext[0]));
103 return yytext[0];
/freebsd-11-stable/contrib/gcc/
HDgengtype-lex.l74 tagstart = yytext + strlen (" typedef ");
101 update_lineno (yytext, yyleng);
112 for (namestart = yytext + yyleng - 2; ISSPACE (*namestart); namestart--)
117 for (typestart = yytext + strlen (" typedef ");
129 update_lineno (yytext, yyleng);
137 for (namestart = yytext + yyleng - 7; ISSPACE (*namestart); namestart--)
146 update_lineno (yytext, yyleng);
154 for (namestart = yytext + yyleng - 2; ISSPACE (*namestart); namestart--)
163 update_lineno (yytext, yyleng);
171 for (namestart = yytext + yyleng - 7; !ISIDNUM (*namestart); namestart--)
[all …]
/freebsd-11-stable/sys/dev/aic7xxx/aicasm/
HDaicasm_scan.l126 yptr = yytext;
239 yylval.value = strtol(yytext, NULL, 8);
244 yylval.value = strtoul(yytext + 2, NULL, 16);
249 yylval.value = strtol(yytext, NULL, 10);
258 <INCLUDE>[<] { return yytext[0]; }
259 <INCLUDE>[>] { BEGIN INITIAL; return yytext[0]; }
264 return yytext[0];
269 yptr = yytext;
286 yptr = yytext;
290 yylval.sym = symtable_get(yytext);
[all …]
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
HDdt_lex.l216 int i = atoi(yytext + 2);
230 "not defined\n", yytext);
246 int i = atoi(yytext + 1);
260 "not defined\n", yytext);
307 " overflow\n", yytext, v);
318 yypcb->pcb_hdl->dt_macros, yytext + 2);
324 "is not defined\n", yytext);
340 yypcb->pcb_hdl->dt_macros, yytext + 1);
344 "is not defined\n", yytext);
362 return (id_or_type(yytext));
[all …]
/freebsd-11-stable/usr.bin/colldef/
HDscan.l82 <INITIAL>[;,{}()] return *yytext;
91 sscanf(&yytext[1], "%o", &v);
98 sscanf(&yytext[2], "%x", &v);
102 <INITIAL,nchar,subs>\\. { yylval.ch = yytext[1]; return CHAR; }
103 <INITIAL,nchar,subs>. { yylval.ch = *yytext; return CHAR; }
162 if (!isascii(*yytext) || !isprint(*yytext))
164 *yytext, line_no, s);
167 line_no, s, *yytext);
168 *ptr++ = *yytext;
225 sscanf(&yytext[2], "%x", &v);
[all …]
/freebsd-11-stable/contrib/binutils/ld/
HDldlex.l144 <DEFSYMEXP>{FILENAMECHAR1}{SYMBOLCHARN}* { yylval.name = xstrdup (yytext); return NAME; }
148 yylval.integer = bfd_scan_vma (yytext + 1, 0, 16);
155 switch (yytext[yyleng - 1]) {
173 yylval.integer = bfd_scan_vma (yytext, 0,
179 char *s = yytext;
189 if (yytext[yyleng - 1] == 'M'
190 || yytext[yyleng - 1] == 'm')
194 else if (yytext[yyleng - 1] == 'K'
195 || yytext[yyleng - 1]=='k')
199 else if (yytext[0] == '0'
[all …]
/freebsd-11-stable/usr.sbin/jail/
HDjaillex.l66 for (s = yytext; s < yytext + yyleng; s++)
83 return yytext[0];
104 skip = yytext[0] == '"' ? 1 : 0;
152 <_>. return yytext[0];
163 if (!yytext)
165 else if (!yytext[0])
168 warnx("%s line %d: %s: %s", cfname, lineno, yytext, s);
182 se = yytext + (yyleng - trimr);
183 for (s = yytext + triml; s < se; s++, d++) {
187 return s - yytext;
/freebsd-11-stable/contrib/ipfilter/tools/
HDlexer.c40 int yytext[YYBUFSIZ+1]; variable
69 c = yytext[yypos++];
93 yytext[yypos++] = c;
95 yytext[yypos] = '\0';
106 yytext[--yypos] = c;
131 yychars[i] = (char)(yytext[i] & 0xff); in yytexttochar()
148 yytext[yylast++] = *s;
149 yytext[yylast] = '\0';
159 if ((yytext[offset] == '\'' || yytext[offset] == '"') &&
160 (yytext[offset] == yytext[offset + max - 1])) {
[all …]
/freebsd-11-stable/contrib/flex/
HDscan.l41 #define ACTION_ECHO add_action( yytext )
65 yylval = (unsigned char) yytext[0]; \
71 strcpy( nmstr, yytext ); \
188 strcpy( nmstr, yytext );
231 [[:digit:]]+ linenum = myctoi( yytext );
439 strcpy( nmstr, yytext + 1 );
452 yytext );
531 amt = strchr (yytext, '|') - yytext;
614 strcpy( nmstr, yytext );
667 end_ch = yytext[yyleng-1];
[all …]
/freebsd-11-stable/usr.sbin/kbdcontrol/
HDlex.l135 sscanf(yytext+4, "%d", &number);
139 sscanf(yytext+3, "%d", &number);
142 '{A}' { letter = *(yytext+1); return TLET; }
144 0x{X}({X}*) { sscanf(yytext, "%x", &number); return TNUM; }
145 {D}({D}*) { sscanf(yytext, "%d", &number); return TNUM; }
147 if (*yytext == 'O') number = 0;
148 if (*yytext == 'C') number = 1;
149 if (*yytext == 'N') number = 2;
150 if (*yytext == 'B') number = 3;
154 . { return *yytext; }
/freebsd-11-stable/usr.bin/m4/
HDtokenizer.l66 . { return yytext[0]; }
75 l = strtol(yytext, NULL, 0);
78 m4_warnx("numeric overflow in expr: %s", yytext);
92 base = strtol(yytext+2, &next, 0); in parse_radix()
94 m4_warnx("error in number %s", yytext); in parse_radix()
107 m4_warnx("error in number %s", yytext); in parse_radix()
/freebsd-11-stable/contrib/netbsd-tests/lib/libcurses/director/
HDtestlang_conf.l181 if (yytext[0] != '/') {
193 if (strlcat(inc_file, yytext, sizeof(inc_file))
305 if (sscanf(yytext, "%lx", &val) != 1)
314 if ((yylval.string = strdup(yytext)) == NULL)
320 if ((yylval.string = strdup(yytext)) == NULL)
328 if ((yylval.string = dequote(yytext, &len)) == NULL)
336 if ((yylval.string = dequote(yytext, &len)) == NULL)
347 p = yytext;
367 p = yytext;
393 p = yytext;
[all …]
/freebsd-11-stable/usr.bin/mkcsmapper/
HDlex.l69 "="|"/"|"-" { return ((int)yytext[0]); }
72 yylval.i_value = strtoul(yytext, NULL, 0);
92 len = strlen(yytext);
94 strlcpy(yylval.s_value, yytext + 1, len - 1);
98 yylval.s_value = strdup(yytext);
/freebsd-11-stable/usr.sbin/bluetooth/hcsecd/
HDlexer.l81 yylval.string = yytext;
86 yylval.string = &yytext[2];
91 yytext[strlen(yytext) - 1] = 0;
92 yylval.string = &yytext[1];
/freebsd-11-stable/crypto/heimdal/lib/asn1/
HDlex.l149 [-,;{}()|] { return *yytext; }
150 "[" { return *yytext; }
151 "]" { return *yytext; }
257 -?0x[0-9A-Fa-f]+|-?[0-9]+ { char *e, *y = yytext;
258 yylval.constant = strtol((const char *)yytext,
261 lex_error_message("malformed constant (%s)", yytext);
266 yylval.name = estrdup ((const char *)yytext);
273 . { lex_error_message("Ignoring char(%c)\n", *yytext); }
/freebsd-11-stable/contrib/ofed/opensm/opensm/
HDosm_qos_parser_l.l53 #define HANDLE_IF_IN_DESCRIPTION if (in_description) { yylval = strdup(yytext); return TK_TEXT; }
271 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_ROUTER; yylval = strdup(yytext); return TK_TEXT; }
272 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_CA; yylval = strdup(yytext); return TK_TEXT; }
273 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_SWITCH; yylval = strdup(yytext); return TK_TEXT; }
274 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_SELF; yylval = strdup(yytext); return TK_TEXT; }
275 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_ALL; yylval = strdup(yytext); return TK_TEXT; }
300 yylval = strdup(yytext);
308 yylval = strdup(yytext);
319 yylval = strdup(yytext);
329 yylval = strdup(yytext);
[all …]
/freebsd-11-stable/usr.bin/mklocale/
HDlex.l60 \'.\' { yylval.rune = (unsigned char)yytext[1];
78 0x{XDIGIT}+ { yylval.rune = strtol(yytext, 0, 16);
80 0{ODIGIT}+ { yylval.rune = strtol(yytext, 0, 8);
82 {DIGIT}+ { yylval.rune = strtol(yytext, 0, 10);
138 \".*\" { char *e = yytext + 1;
166 . { printf("Lex is skipping '%s'\n", yytext); }
/freebsd-11-stable/usr.sbin/apmd/
HDapmdlex.l90 yylval.i = atoi(yytext);
94 yylval.i = -atoi(yytext);
113 <TOP>[^"{},;#\n\t ]+ { yylval.str = strdup(yytext); return UNKNOWN; }
119 syslog(LOG_ERR, "line %d: %s%s %s.\n", lineno, yytext, yytext?":":"", s);
/freebsd-11-stable/contrib/binutils/binutils/
HDdeflex.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);
/freebsd-11-stable/usr.bin/mkesdb/
HDlex.l72 yylval.i_value = strtoul(yytext, NULL, 0);
85 len = strlen(yytext);
87 strlcpy(yylval.s_value, yytext + 1, len - 1);
91 yylval.s_value = strdup(yytext);
/freebsd-11-stable/usr.bin/lex/
HDinitscan.c358 extern char *yytext;
359 #define yytext_ptr yytext
1887 char *yytext; variable
1928 #define ACTION_ECHO add_action( yytext )
1952 yylval = (unsigned char) yytext[0]; \
1958 strcpy( nmstr, yytext ); \
2112 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
2197 (yytext[yyleng - 1] == '\n'); \
2432 strcpy( nmstr, yytext );
2547 linenum = myctoi( yytext );
[all …]
/freebsd-11-stable/contrib/ipfilter/iplang/
HDiplang_l.l182 fprintf(stderr, "%s error at \"%s\", line %d\n", msg, yytext,
216 yylval.str = strdup((char *)yytext);
227 printf("text=[%s] id=%d next=%d\n", yytext, nstate, next);
235 if (!strcasecmp(wt->word, (char *)yytext))
238 printf("unknown keyword=[%s]\n", yytext);
241 yylval.num = atoi((char *)yytext);

1234