#include <kernel.h>
#include <shell.h>
Go to the source code of this file.
Functions | |
short | lexan (char *line, ushort linelen, char *tokbuf, char *tok[]) |
Definition in file lexan.c.
short lexan | ( | char * | line, | |
ushort | linelen, | |||
char * | tokbuf, | |||
char * | tok[] | |||
) |
Ad hoc lexical analyzer to divide command line into tokens
*line | pointer to line to parse | |
linelen | length of line to parse | |
*tokbuf | buffer for tokens | |
*tok[] | array of pointers into token buffer |
Definition at line 20 of file lexan.c.
References isEndOfLine, isOtherSpecial, isQuote, isWhitespace, SHELL_MAXTOK, and SYSERR.
Referenced by shell().