#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _KEY_WORD_END "waiting for your expanding"
typedef struct
{
int ConstL;
char *NameL;
}WORD;
char input[255];
char token[255]="";
int p_input;
int p_token;
char ch;
char* rwtab[] = {
"if", "else", "for", "while", "break", "return", "continue", "float", "int","char",_KEY_WORD_END};
WORD * scaner();
int main()
{
int over = 1;
WORD* oneword = new WORD;
printf("Enter Your words(end with #):");
scanf("%[^#]s",input);
p_input = 0;
printf("Your words:\n%s\n",input);
while(over < 38 && input[p_input]!='\0')
{
oneword = scaner();
if(oneword->ConstL <38)
printf("( %d,%s )\n",oneword->ConstL,oneword->NameL);
over = oneword->ConstL;
}
printf("\npress # to exit:");
scanf("%[^#]s",input);
return 0;
}
char m_getch()
{
ch = input[p_input];
p_input = p_input+1;
return(ch);
}
void getbc()
{
while(ch == ' ' || ch == 10)
{
ch = input[p_input];
p_input++;
}
}
void concat