73 tokbuf[tbindex++] = ch;
74 tokbuf[tbindex++] =
NULLCH;
80 tokbuf[tbindex++] = ch;
81 tokbuf[tbindex++] =
NULLCH;
87 tokbuf[tbindex++] = ch;
88 tokbuf[tbindex++] =
NULLCH;
105 while ( ((ch=*p++) != quote) && (ch !=
SH_NEWLINE)
107 tokbuf[tbindex++] = ch;
115 tokbuf[tbindex++] =
NULLCH;
122 tokbuf[tbindex++] = ch;
130 tokbuf[tbindex++] = ch;
141 tokbuf[tbindex++] =
NULLCH;
#define SH_TOK_GREATER
大なり'>'トークン
#define SH_AMPER
アンパサンド文字'&'(字句解析時に用いる)
#define SH_TAB
TAB文字(字句解析時に用いる)
#define SH_BLANK
ブランク(空白)文字(字句解析時に用いる)
#define SH_TOK_OTHER
その他('&'、'<'、'>以外')のトークン(例:英数字文字列)
#define SH_SQUOTE
シングルクォート文字'''(字句解析時に用いる)
#define SH_NEWLINE
LF改行コード' '(字句解析時に用いる)
int32 lexan(char *line, int32 len, char *tokbuf, int32 *tlen, int32 tok[], int32 toktyp[])
#define SHELL_MAXTOK
一行あたりの最大トークン数
#define SH_DQUOTE
ダブルクォート文字'"'(字句解析時に用いる)
int int32
符号あり32ビット整数(int)
#define SH_GREATER
大なり記号'>'
#define SH_TOK_AMPER
アンパサンド'&'トークン
unsigned int uint32
符号なし32ビット整数(unsigned int)
#define SH_LESS
小なり記号'<'
#define NULLCH
NULL文字(NULL終端)
#define SH_TOK_LESS
小なり'<'トークン