Home | History | Annotate | Download | only in sh

Lines Matching full:token

73 #include "token.h"
93 int lasttoken; /* last token read */
94 MKINIT int tokpushback; /* last token pushed back */
100 int quoteflag; /* set if (part of) last token was quoted */
101 int startlinno; /* line # where last token started */
766 TRACE(("token %s %s\n", tokname[t], t == TWORD ? wordtext : ""));
768 TRACE(("reread token %s %s\n", tokname[t], t == TWORD ? wordtext : ""));
775 * Read the next input token.
776 * If the token is a word, we set backquotelist to the list of cmds in
779 * If the token is TREDIR, then we set redirnode to a structure containing
782 * on which the token starts.
792 #define RETURN(token) return lasttoken = token
808 for (;;) { /* until token or start of word found */
871 * is the first character of the input token or document.
1592 * Called when an unexpected token is read during the parse. The argument
1593 * is the token that is expected, or -1 if more than one type of token can
1598 synexpect(int token)
1602 if (token >= 0) {
1604 tokname[lasttoken], tokname[token]);