示例#1
0
void GetIdentifier(void)
{
  int i;

  i=0;
  while ((chr_table[*src] == LETTER) || (chr_table[*src] == DIGIT))
    token[i++] = *src++;
  token[i]=0;
  strlwr(token);
  CheckLibFunc();
}
示例#2
0
void GetIdentifier(void)
{
	char*	ptok;

	ptok=tok.ident; //token;
	while (*src
	&& (LETTER==chr_table[*src]
	|| DIGIT==chr_table[*src]))
	{
		*ptok++ = *src++;
	}
	*ptok='\0';

	strlwr(tok.ident); //token);
	CheckLibFunc();
}