Return to mkdata.c CVS log | Up to [local] / OpenXM / src / k097 / Stable |
1.1 ! maekawa 1: #include <stdio.h> ! 2: ! 3: main() { ! 4: char s[1024]; ! 5: int count = 0; ! 6: printf("char *SymbolTableOfsm1[]={\n"); ! 7: while (scanf("%s",s) != -1) { ! 8: count++; ! 9: printf(" \"%s\",\n",s); ! 10: } ! 11: printf(" \"zzzzzzzzDUMMYsYMBOLeND\"};\n"); ! 12: count++; ! 13: printf("int SizeOfSymbolTableOfsm1 = %d;\n",count); ! 14: exit(0); ! 15: } ! 16: