/***************************************************************************** * * ObjectPak Test Program - Example of using LEX & Objective C * ****************************************************************************/ #include #include #include "objpak.h" /* * yylex() scans and adds words to the global "words" which may be a Set * OrdCltn, SortCltn etc. */ id words; extern int yylex(); #define CLTN_MODE (1) #define SET_MODE (2) #define DIC_MODE (3) #define SORT_MODE (4) static void usage() { fprintf(stderr,"usage: words [-cltn][-set][-dic][-sort]\n");exit(1); } static int setMode(int argc,STR *argv) { int i; for(i=1;i