Go to the source code of this file.
◆ lexan()
Definition at line 10 of file lexan.c.
References NULLCH, SH_AMPER, SH_BLANK, SH_DQUOTE, SH_GREATER, SH_LESS, SH_NEWLINE, SH_SQUOTE, SH_TAB, SH_TOK_AMPER, SH_TOK_GREATER, SH_TOK_LESS, SH_TOK_OTHER, SHELL_MAXTOK, and SYSERR.
Referenced by shell().
   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改行コード' '(字句解析時に用いる) 
 
#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
小なり'<'トークン