| /netbsd/src/external/bsd/am-utils/dist/amd/ |
| D | conf_tok.l | 75 # define ECHO __IGNORE(fwrite( yytext, yyleng, 1, yyout )) 132 dprintf("%8d: Left bracket \"%s\"\n", yytext); 133 conf_lval.strtype = xstrdup(yytext); 138 dprintf("%8d: Right bracket \"%s\"\n", yytext); 139 conf_lval.strtype = xstrdup(yytext); 144 dprintf("%8d: Equal \"%s\"\n", yytext); 145 conf_lval.strtype = xstrdup(yytext); 150 dprintf("%8d: Whitespace \"%s\"\n", yytext); 155 yytext[strlen((char *)yytext)-1] = '\0'; 156 dprintf("%8d: Comment \"%s\"\n", yytext); [all …]
|
| /netbsd/src/external/bsd/flex/dist/tests/ |
| D | ccl.l | 42 ^"^alpha:"[[:^alpha:]]+@alpha@\n printf("OK: %s", yytext); ++yylineno; return 1; 43 ^"^digit:"[[:^digit:]]+@digit@\n printf("OK: %s", yytext); ++yylineno; return 1; 44 ^"^alnum:"[[:^alnum:]]+@alnum@\n printf("OK: %s", yytext); ++yylineno; return 1; 45 ^"^upper:"[[:^upper:]]+@upper@\n printf("OK: %s", yytext); ++yylineno; return 1; 46 ^"^lower:"[[:^lower:]]+@lower@\n printf("OK: %s", yytext); ++yylineno; return 1; 47 ^"^space:"[[:^space:]]+@space@\n printf("OK: %s", yytext); ++yylineno; return 1; 48 ^"^blank:"[[:^blank:]]+@blank@\n printf("OK: %s", yytext); ++yylineno; return 1; 49 ^"^punct:"[[:^punct:]]+@punct@\n printf("OK: %s", yytext); ++yylineno; return 1; 50 ^"^cntrl:"[[:^cntrl:]]+@cntrl@\n printf("OK: %s", yytext); ++yylineno; return 1; 51 ^"^xdigit:"[[:^xdigit:]]+@xdigit@\n printf("OK: %s", yytext); ++yylineno; return 1; [all …]
|
| /netbsd/src/external/bsd/elftosb/dist/elftosb2/ |
| D | elftosb_lexer.l | 69 … switch (yytext[0]) 96 … m_symbolValue.m_str = new std::string(yytext); 113 … if (yytext[0] == '0' && yytext[1] == 'b') 116 … yytext += 2; // skip over the "0b" 120 … value = (uint32_t)strtoul(yytext, NULL, base); 123 … switch (yytext[strlen(yytext) - 1]) 147 … int len = strlen(yytext); 150 … value = yytext[1]; 155 … value = (value << 8) | yytext[2]; 160 … value = (value << 8) | yytext[3]; [all …]
|
| D | elftosb_lexer.cpp | 187 if ( yytext[yyl] == '\n' )\ 321 #define yytext_ptr yytext 659 #define ECHO LexerOutput( yytext, yyleng ) 797 if ( yytext[yyl] == '\n' ) 910 … switch (yytext[0]) 943 … m_symbolValue.m_str = new std::string(yytext); 962 … if (yytext[0] == '0' && yytext[1] == 'b') 965 … yytext += 2; // skip over the "0b" 969 … value = (uint32_t)strtoul(yytext, NULL, base); 972 … switch (yytext[strlen(yytext) - 1]) [all …]
|
| /netbsd/src/external/bsd/flex/dist/examples/manual/ |
| D | numbers.lex | 45 sscanf(&yytext[2],"%lx",&yylval.yunsigned_long); 49 sscanf(&yytext[2],"%lx",&yylval.ysigned_long); 53 sscanf(&yytext[2],"%x",&yylval.yunsigned); 57 sscanf(&yytext[2],"%lx",&yylval.ysigned_long); 61 sscanf(yytext,"%lo",&yylval.yunsigned_long); 65 sscanf(yytext,"%lo",&yylval.ysigned_long); 69 sscanf(yytext,"%o",&yylval.yunsigned); 73 sscanf(yytext,"%lo",&yylval.ysigned_long); 77 sscanf(yytext,"%ld",&yylval.yunsigned_long); 81 sscanf(yytext,"%ld",&yylval.ysigned_long); [all …]
|
| D | dates.lex | 56 <LONG>{day_of_the_week} strcpy(dow,yytext); 57 <LONG>{month} strcpy(month,yytext); BEGIN(DAY); 61 <LONG>{nday}{day_ext} strcpy(day,yytext); BEGIN(DAY_FIRST); 62 <DAY_FIRST>{month} strcpy(month,yytext); BEGIN(LONG); 63 <DAY>{nday}{day_ext} strcpy(day,yytext); BEGIN(LONG); 70 printf(" Year : %s \n",yytext); 78 <SHORT>{nday} strcpy(day,yytext); BEGIN(YEAR_LAST); 79 <YEAR_LAST>{nmonth} strcpy(month,yytext);BEGIN(YLMONTH); 80 <YLMONTH>{nyear} strcpy(year,yytext); BEGIN(SHORT); 84 <SHORT>{nyear} strcpy(year,yytext); BEGIN(YEAR_FIRST); [all …]
|
| D | j2t.lex | 23 extern char *yytext; 125 (void)check_and_convert(yytext); in write_block_header() 164 yytext[yyleng-1] = '\0'; 165 (void)check_and_convert(&yytext[1]); 170 yytext[yyleng-2] = '\0'; 171 (void)check_and_convert(&yytext[2]); 176 yytext[yyleng-1] = '\0'; 177 (void)check_and_convert(&yytext[1]); 196 strcpy(buffer,yytext); 225 strcpy(buffer,yytext); [all …]
|
| /netbsd/src/usr.bin/msgc/ |
| D | msgscan.l | 65 ";" { return (int)yytext[0]; } 70 yylval.s_value = strdup(yytext); 92 <BRACE>"{" { buff_add_ch(yytext[0]); level++; } 99 buff_add_ch (yytext[0]); 102 <BRACE>"\n" { buff_add_ch (yytext[0]); line_no++; } 104 <BRACE>. { buff_add_ch (yytext[0]); } 107 if (yytext[0] < ' ') 108 yyerror ("illegal character: ^%c",yytext[0] + '@'); 110 if (yytext[0] > '~') 111 yyerror ("illegal character: \\%3d", (int) yytext[0]); [all …]
|
| /netbsd/src/external/bsd/ntp/dist/ntpd/ |
| D | ntp_scanner.c | 40 char yytext[MAX_LEXEME]; /* Buffer for storing the input text/lexeme */ variable 726 yytext[0] = (char)ch; in yylex() 727 yytext[1] = '\0'; in yylex() 739 yytext[i] = (char)ch; in yylex() 758 if (i >= COUNTOF(yytext)) in yylex() 771 yytext[i++] = (char)ch; in yylex() 772 if (i >= COUNTOF(yytext)) in yylex() 790 yytext[i] = '\0'; in yylex() 801 token = is_keyword(yytext, &followedby); in yylex() 814 } else if (is_integer(yytext)) { in yylex() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/gas/ |
| 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[0])); 103 return yytext[0];
|
| /netbsd/src/sys/dev/microcode/aic7xxx/ |
| D | aicasm_scan.l | 126 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 …]
|
| /netbsd/src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| D | dt_lex.l | 216 int i = atoi(yytext + 2); 230 "not defined\n", yytext); 246 int i = atoi(yytext + 1); 260 "not defined\n", yytext); 308 " overflow\n", yytext, v); 319 yypcb->pcb_hdl->dt_macros, yytext + 2); 325 "is not defined\n", yytext); 341 yypcb->pcb_hdl->dt_macros, yytext + 1); 345 "is not defined\n", yytext); 363 return (id_or_type(yytext)); [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/ld/ |
| D | ldlex.l | 134 yylval.integer = strtoull (yytext + 1, 0, 16); 141 switch (yytext[yyleng - 1]) { 159 yylval.integer = strtoull (yytext, 0, ibase); 164 char *s = yytext; 174 if (yytext[yyleng - 1] == 'M' 175 || yytext[yyleng - 1] == 'm') 179 else if (yytext[yyleng - 1] == 'K' 180 || yytext[yyleng - 1]=='k') 184 else if (yytext[0] == '0' 185 && (yytext[1] == 'x' [all …]
|
| /netbsd/src/sys/arch/amiga/stand/bootblock/txlt/ |
| D | txlt.l | 3 .\.l\ [._A-Za-z][A-Za-z0-9_.]*/\, {printf("%c.l",yytext[0]);munchit(yytext+3);} 4 .\.w\ [._A-Za-z][A-Za-z0-9_.]*/\, {printf("%c.w",yytext[0]);munchit(yytext+3);} 5 \..*\n printf("%s", yytext); 6 pea[ ][._A-Za-z][A-Za-z0-9_.]*$ {printf("pea");munchit(yytext+3);} 7 \ [._A-Za-z][A-Za-z0-9_.]*/\, munchit(yytext); 8 . putchar(*yytext);
|
| /netbsd/src/sbin/wsconsctl/ |
| D | map_scan.l | 81 i = name2ksym(yytext); 83 errx(EXIT_FAILURE, "%s: not a keysym", yytext); 93 yylval.ival = atoi(yytext); 98 if (yytext[0] >= ' ' && yytext[0] <= '~') 100 yytext[0]); 103 yytext[0] & 255);
|
| /netbsd/src/usr.bin/fgen/ |
| D | fgen.l | 113 0 { ltoken.type = TOK_OTHER; ltoken.text = yytext; return <oken; } 115 1 { ltoken.type = TOK_OTHER; ltoken.text = yytext; return <oken; } 117 2 { ltoken.type = TOK_OTHER; ltoken.text = yytext; return <oken; } 119 3 { ltoken.type = TOK_OTHER; ltoken.text = yytext; return <oken; } 121 -1 { ltoken.type = TOK_OTHER; ltoken.text = yytext; return <oken; } 123 \. { ltoken.type = TOK_OTHER; ltoken.text = yytext; return <oken; } 127 \\[^\n]*\n /* end of line comment -- keep looping */ { STATE(yytext, "EOL commen… 129 -?{hex}{hexdot}* { ltoken.type = TOK_NUMBER; ltoken.text = yytext; 132 \'.\' { ltoken.type = TOK_C_LIT; ltoken.text = yytext; return <oken; } 137 \.\({white}*(\\\"|[^)])*\) { ltoken.type = TOK_PSTRING; ltoken.text = yytext; [all …]
|
| /netbsd/src/tests/lib/libcurses/director/ |
| D | testlang_conf.l | 203 if (yytext[0] == '/') { 218 dir_len, dir_begin, yytext) == -1) 278 if (sscanf(yytext, "%lx", &val) != 1) 286 if ((yylval.string = strdup(yytext)) == NULL) 292 if ((yylval.string = strdup(yytext)) == NULL) 300 if ((yylval.string = dequote(yytext, &len)) == NULL) 308 if ((yylval.string = dequote(yytext, &len)) == NULL) 319 p = yytext; 339 p = yytext; 365 p = yytext; [all …]
|
| /netbsd/src/usr.sbin/envstat/ |
| D | config_lex.l | 65 {DEVICEPROP} { yylval.string = strdup(yytext); return DEVICE_PROP; } 66 {SENSOR} { yylval.string = strdup(yytext); return SENSOR; } 67 {SENSORPROP} { yylval.string = strdup(yytext); return SENSOR_PROP; } 68 \"{SP_STRING}\" { yylval.string = strdup(yytext + 1); 69 yylval.string[strlen(yytext) - 2] = '\0'; return STRING; } 70 {STRING} { yylval.string = strdup(yytext); return STRING; } 71 . { yyerror("illegal token `%s'", yytext); }
|
| /netbsd/src/external/lgpl3/gmp/dist/demos/calc/ |
| D | calclex.l | 75 [-+*/%()<>^!=,] { return yytext[0]; } 86 yylval.str = yytext; 93 if (strcmp (yytext, calc_keywords[i].name) == 0) 96 if (yytext[0] >= 'a' && yytext[0] <= 'z' && yytext[1] == '\0') 98 yylval.var = yytext[0] - 'a';
|
| /netbsd/src/external/bsd/ipf/dist/tools/ |
| 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); in yytexttochar() 148 yytext[yylast++] = *s; 149 yytext[yylast] = '\0'; 159 if ((yytext[offset] == '\'' || yytext[offset] == '"') && 160 (yytext[offset] == yytext[offset + max - 1])) { [all …]
|
| /netbsd/src/usr.bin/rdist/ |
| D | gram.y | 207 static char yytext[INMAX]; in yylex() local 250 cp1 = yytext; in yylex() 251 cp2 = &yytext[INMAX - 1]; in yylex() 275 yylval.string = makestr(yytext); in yylex() 284 cp1 = yytext; in yylex() 285 cp2 = &yytext[INMAX - 1]; in yylex() 308 if (yytext[0] == '-' && yytext[2] == '\0') { in yylex() 309 switch (yytext[1]) { in yylex() 339 if (!strcmp(yytext, "install")) in yylex() 341 else if (!strcmp(yytext, "notify")) in yylex() [all …]
|
| /netbsd/src/usr.bin/menuc/ |
| D | scan.l | 59 "="|";"|","|"("|")" { return (int)yytext[0]; } 122 yylval.s_value = strdup (yytext); 123 max_strlen = max_strlen > strlen(yytext) 124 ? max_strlen : strlen(yytext) + 1; 129 yylval.s_value = strdup(yytext); 134 yylval.s_value = strdup(yytext); 198 printf ("val = %d\n yytext = %s\n", val, yytext);
|
| /netbsd/src/external/gpl3/binutils/dist/gas/config/ |
| D | loongarch-lex.l | 44 {dec} { yylval.imm = strtoull (yytext, 0, 0); return INTEGER; } 45 {hex} { yylval.imm = strtoull (yytext + 2, 0, 16); return INTEGER; } 46 {bin} { yylval.imm = strtoull (yytext + 2, 0, 2); return INTEGER; } 47 {oct} { yylval.imm = strtoull (yytext + 1, 0, 8); return INTEGER; } 48 {id} { yylval.c_str = strdup (yytext);return IDENTIFIER; } 59 . { return yytext[0];}
|
| /netbsd/src/usr.sbin/npf/npfctl/ |
| D | npf_scan.l | 195 char *endp, *buf = estrndup(yytext, yyleng); 202 yylval.str = estrndup(yytext, yyleng); 207 yylval.str = estrndup(yytext, yyleng); 212 yylval.str = estrndup(yytext, yyleng); 217 char *endp, *buf = estrndup(yytext, yyleng); 224 yylval.str = estrndup(yytext + 1, yyleng - 2); 229 yylval.str = estrndup(yytext + 1, yyleng - 1); 234 yylval.str = estrndup(yytext, yyleng); 239 yylval.str = estrndup(yytext, yyleng); 244 yylval.str = estrndup(yytext + 1, yyleng - 2);
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/ |
| D | gengtype-lex.l | 108 {WS} { update_lineno (yytext, yyleng); } 116 *yylval = XDUPVAR (const char, yytext, yyleng, yyleng + 1); 129 *yylval = XDUPVAR (const char, yytext, yyleng, yyleng+1); 137 for (len = yyleng; ISSPACE (yytext[len-1]); len--) 140 *yylval = XDUPVAR (const char, yytext, len, len+1); 141 update_lineno (yytext, yyleng); 146 *yylval = XDUPVAR (const char, yytext, yyleng, yyleng+1); 181 \"([^"\\]|\\.|\\\n)*\" { update_lineno (yytext, yyleng); }
|