/freebsd-10.0-release/contrib/amd/amd/ |
H A D | conf_tok.l | 77 # define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) 133 dprintf("%8d: Left bracket \"%s\"\n", yytext); 134 yylval.strtype = strdup((char *)yytext); 139 dprintf("%8d: Right bracket \"%s\"\n", yytext); 140 yylval.strtype = strdup((char *)yytext); 145 dprintf("%8d: Equal \"%s\"\n", yytext); 146 yylval.strtype = strdup((char *)yytext); 151 dprintf("%8d: Whitespace \"%s\"\n", yytext); 156 yytext[strlen((char *)yytext) [all...] |
/freebsd-10.0-release/contrib/binutils/gas/ |
H A D | itbl-lex.l | 64 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[ [all...] |
/freebsd-10.0-release/contrib/dtc/ |
H A D | dtc-lexer.l | 51 srcpos_update(&yylloc, yytext, yyleng); \ 73 char *name = strchr(yytext, '\"') + 1; 74 yytext[yyleng-1] = '\0'; 85 DPRINT("String: %s\n", yytext); 86 yylval.data = data_copy_escape_string(yytext+1, 111 DPRINT("Label: %s\n", yytext); 112 yylval.labelref = xstrdup(yytext); 118 yylval.literal = xstrdup(yytext); 124 yytext[yyleng-1] = '\0'; 125 yylval.literal = xstrdup(yytext [all...] |
/freebsd-10.0-release/sbin/devd/ |
H A D | token.l | 61 \/\*([^*]|(\*+([^*\/])))*\*+\/ { update_lineno(yytext); } 64 [0-9]+ { yylval.i = atoi(yytext); return NUMBER; } 66 int len = strlen(yytext) - 2; 69 update_lineno(yytext); 74 if (yytext[i] == '\\' && 75 yytext[i + 1] == '\n') { 77 while(isspace(yytext[i])) 80 *walker++ = yytext[i]; 103 yylval.str = strdup(yytext); 111 syslog(LOG_ERR, "line %d: %s%s %s.\n", lineno, yytext, yytex [all...] |
/freebsd-10.0-release/contrib/binutils/binutils/ |
H A D | deflex.l | 63 [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 D | syslex.l | 50 memcpy (yylval.s, yytext + 1, yyleng - 2); 56 yylval.i = strtol(yytext,0,16); 61 yylval.i = atoi(yytext);
|
/freebsd-10.0-release/contrib/gcc/ |
H A D | gengtype-lex.l | 74 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 [all...] |
/freebsd-10.0-release/contrib/ipfilter/tools/ |
H A D | lexer.c | 40 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); 148 yytext[yylast++] = *s; 149 yytext[yylast] = '\0'; 159 if ((yytext[offset] == '\'' || yytext[offse [all...] |
/freebsd-10.0-release/usr.bin/m4/ |
H A D | tokenizer.l | 63 . { return yytext[0]; } 72 l = strtol(yytext, NULL, 0); 75 fprintf(stderr, "m4: numeric overflow in expr: %s\n", yytext); 89 base = strtol(yytext+2, &next, 0); 91 fprintf(stderr, "m4: error in number %s\n", yytext); 105 "m4: error in number %s\n", yytext);
|
/freebsd-10.0-release/usr.sbin/apmd/ |
H A D | apmdlex.l | 86 yylval.i = atoi(yytext); 90 yylval.i = -atoi(yytext); 100 int len = strlen(yytext) - 2; 103 memcpy(yylval.str, yytext + 1, len); 109 <TOP>[^"{},;#\n\t ]+ { yylval.str = strdup(yytext); return UNKNOWN; } 115 syslog(LOG_ERR, "line %d: %s%s %s.\n", lineno, yytext, yytext?":":"", s);
|
/freebsd-10.0-release/usr.sbin/kbdcontrol/ |
H A D | lex.l | 132 sscanf(yytext+4, "%d", &number); 136 sscanf(yytext+3, "%d", &number); 139 '{A}' { letter = *(yytext+1); return TLET; } 141 0x{X}({X}*) { sscanf(yytext, "%x", &number); return TNUM; } 142 {D}({D}*) { sscanf(yytext, "%d", &number); return TNUM; } 144 if (*yytext == 'O') number = 0; 145 if (*yytext == 'C') number = 1; 146 if (*yytext == 'N') number = 2; 147 if (*yytext == 'B') number = 3; 151 . { return *yytext; } [all...] |
/freebsd-10.0-release/sys/dev/aic7xxx/aicasm/ |
H A D | aicasm_scan.l | 126 yptr = yytext; 150 yptr = yytext; 172 if (strcmp(yytext, "RW") == 0) 174 else if (strcmp(yytext, "RO") == 0) 235 [-+,:()~|&."{};<>[\]/*!=] { return yytext[0]; } 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[ [all...] |
/freebsd-10.0-release/usr.sbin/jail/ |
H A D | jaillex.l | 63 for (s = yytext; s < yytext + yyleng; s++) 80 return yytext[0]; 101 skip = yytext[0] == '"' ? 1 : 0; 149 <_>. return yytext[0]; 160 if (!yytext) 162 else if (!yytext[0]) 165 warnx("%s line %d: %s: %s", cfname, lineno, yytext, s); 169 * Copy string from yytext to yylval, handling backslash escapes, 179 se = yytext [all...] |
/freebsd-10.0-release/contrib/com_err/ |
H A D | lex.l | 67 [0-9]+ { yylval.number = atoi(yytext); return NUMBER; } 72 [a-zA-Z0-9_]+ { yylval.string = strdup(yytext); return STRING; } 73 . { return *yytext; }
|
/freebsd-10.0-release/crypto/heimdal/lib/com_err/ |
H A D | lex.l | 67 [0-9]+ { yylval.number = atoi(yytext); return NUMBER; } 72 [a-zA-Z0-9_]+ { yylval.string = strdup(yytext); return STRING; } 73 . { return *yytext; }
|
/freebsd-10.0-release/contrib/binutils/ld/ |
H A D | ldlex.l | 144 <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[ [all...] |
/freebsd-10.0-release/usr.bin/mkcsmapper/ |
H A D | lex.l | 67 "="|"/"|"-" { return ((int)yytext[0]); } 70 yylval.i_value = strtoul(yytext, NULL, 0); 90 len = strlen(yytext); 92 strlcpy(yylval.s_value, yytext + 1, len - 1); 96 yylval.s_value = strdup(yytext);
|
/freebsd-10.0-release/contrib/flex/ |
H A D | yylex.c | 45 extern char *yytext; 177 fprintf (stderr, "%s ", yytext); 194 fprintf (stderr, "%s", yytext);
|
H A D | scan.l | 41 #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 ); 235 infilename = copy_string( yytext + 1 ); 262 buf_strnappend(&top_buf, yytext, yyleng); 267 buf_strnappend(&top_buf, yytext, yyleng); 272 buf_strnappend(&top_buf, yytext, yyleng); 279 buf_strnappend(&top_buf, yytext, yylen [all...] |
/freebsd-10.0-release/lib/libc/net/ |
H A D | nslexer.l | 81 if ((p = strdup(yytext)) == NULL) { 94 . return yytext[0]; 111 _PATH_NS_CONF, yylineno, msg, yytext);
|
/freebsd-10.0-release/contrib/amd/fsinfo/ |
H A D | fsi_lex.l | 105 # define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) 174 <F>[^ \t\n"={}]+ { return find_resword(yytext); } /* dummy " */ 177 <F>[={}] { return *yytext; } 191 <Q>([ \t]|"\\\n"){2,} { char *p = (char *) yytext-1; while ((p = strchr(p+1, '\n'))) ayylineno++; } 197 <Q>. { *optr++ = *yytext; }
|
/freebsd-10.0-release/crypto/heimdal/lib/asn1/ |
H A D | lex.l | 149 [-,;{}()|] { 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-10.0-release/sbin/hastd/ |
H A D | token.l | 79 [0-9]+ { DP; yylval.num = atoi(yytext); return NUM; } 80 [a-zA-Z0-9\.\-_/\:\[\]]+ { DP; yylval.str = strdup(yytext); return STR; }
|
/freebsd-10.0-release/usr.bin/csup/ |
H A D | token.l | 64 yylval.str = strdup(yytext); 77 lprintf(-1, "Parse error line %d: %s: %s\n", lineno, s, yytext);
|
/freebsd-10.0-release/usr.sbin/bluetooth/bthidd/ |
H A D | lexer.l | 91 return (bt_aton(yytext, &yylval.bdaddr)? 98 yylval.num = strtoul(yytext, &ep, 16);
|