Lines Matching refs:tokstr
46 char *tokstr;
52 char *tokstr;
783 TT.scs->tokstr = xrealloc(TT.scs->tokstr, TT.scs->maxtok);
785 TT.scs->tokstr[TT.scs->toklen++] = c;
786 TT.scs->tokstr[TT.scs->toklen] = 0;
810 strcat(s, TT.scs->tokstr);
822 strcat(s, TT.scs->tokstr);
857 FFATAL("Unexpected token '%s'\n", TT.scs->tokstr);
953 TT.scs->tokstr[0] = 0;
1049 TT.scs->tokstr[TT.scs->toklen] = 0;
1056 FFATAL("Unexpected token '%s'\n", TT.scs->tokstr);
1084 TT.tokstr = TT.scs->tokstr;
1211 int locals_ent = find_local_entry(TT.tokstr); // in local symbol table?
1215 globals_ent = find_global(TT.tokstr);
1216 if (!globals_ent) globals_ent = add_global(TT.tokstr);
1218 if (find_func_def_entry(TT.tokstr))
1221 XERR("var '%s' used as function name\n", TT.tokstr);
1335 if (!strcmp(TT.tokstr, "\n")) TT.tokstr = "<newline>";
1338 XERR("syntax near '%s' -- '%s' expected\n", TT.tokstr, op);
1343 XERR("syntax near '%s' -- '%s' expected\n", TT.tokstr, tkstr);
1344 } else XERR("syntax near '%s'\n", TT.tokstr);
1452 gen2cd(tkregex, make_literal_regex_val(TT.tokstr));
1472 gen2cd(tkregex, make_literal_regex_val(TT.tokstr));
1493 gen2cd(tkregex, make_literal_regex_val(TT.tokstr));
1537 strcpy(builtin_name, TT.tokstr);
1539 funcnum = find_func_def_entry(TT.tokstr);
1540 if (!funcnum) funcnum = add_func_def_entry(TT.tokstr);
1543 } else error_exit("bad function %s!", TT.tokstr);
1577 // var name is in TT.tokstr
1675 XERR("syntax near '%s' (bad lvalue)\n", TT.tokstr);
1726 gen2cd(tkstring, make_literal_str_val(TT.tokstr));
1736 gen2cd(opmatchrec, make_literal_regex_val(TT.tokstr));
1801 XERR("syntax near '%s'\n", TT.tokstr[0] == '\n' ? "\\n" : TT.tokstr);
1906 XERR("syntax near '%s'; expected 'in'\n", TT.tokstr);
1928 XERR("syntax near '%s'\n", TT.tokstr[0] == '\n' ? "\\n" : TT.tokstr);
2011 XERR("syntax near '%s'\n", TT.tokstr[0] == '\n' ? "\\n" : TT.tokstr);
2100 XERR("syntax near '%s' -- ';' or newline expected\n", TT.tokstr);
2294 int funcnum = find_func_def_entry(TT.tokstr);
2296 funcnum = add_func_def_entry(TT.tokstr);
2298 XERR("dup defined function '%s'\n", TT.tokstr);
2301 if (find_global(TT.tokstr)) {
2304 XERR("function name '%s' previously defined\n", TT.tokstr);
2315 add_param(funcnum, TT.tokstr);
2317 // FIXME is the the best way? what if TT.tokstr not a tkvar?
2319 add_param(funcnum, TT.tokstr);
2332 XERR("syntax near '%s'\n", TT.tokstr);
2362 XERR("syntax near '%s' -- newline, ';', or '}' expected\n", TT.tokstr);
4502 TT.scs->tokstr = xzalloc(TT.scs->maxtok);