home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_06
/
1n06040b
< prev
next >
Wrap
Text File
|
1990-10-02
|
314b
|
27 lines
Listing 7
static int c;
int yylex(void)
{
int tc;
while (isspace(c) && c != '\n')
c = getchar();
if (isdigit(c))
{
yylval = 0;
do
yylval = 10 * yylval + c - '0';
while (isdigit(c = getchar()));
return INT;
}
else
{
tc = c;
c = getchar();
return tc;
}