Lines Matching refs:tok
14804 const tok = this.popToken();
14805 arg.push(tok);
14807 if (tok.text === "{") {
14809 } else if (tok.text === "}") {
14811 } else if (tok.text === "EOF") {
14879 let tok = tokens[i];
14881 if (tok.text === "#") {
14883 throw new ParseError("Incomplete placeholder at end of macro body", tok);
14886 tok = tokens[--i]; // next token on stack
14888 if (tok.text === "#") {
14891 } else if (/^[1-9]$/.test(tok.text)) {
14893 tokens.splice(i, 2, ...args[+tok.text - 1]);
14895 throw new ParseError("Not a valid argument number", tok);
15010 let tok = bodyLexer.lex();
15012 while (tok.text !== "EOF") {
15013 tokens.push(tok);
15014 tok = bodyLexer.lex();