home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / mac / 0500 / CCE_0502.ZIP / CCE_0502.PD / DSP_ASM / TOK.AWK < prev    next >
Text File  |  1992-11-14  |  211b  |  4 lines

  1. BEGIN        {printf("struct {int n; char *name;} tok_tab[] = {\n");}
  2. /# define/    {printf("    {%d, \"%s\"},\n", $4, $3);}
  3. END        {printf("};\n#define N_TOK (sizeof tok_tab / sizeof tok_tab[0])\nint n_tok = N_TOK;\n");}
  4.