=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/Attic/parse.h,v retrieving revision 1.2 retrieving revision 1.4 diff -u -p -r1.2 -r1.4 --- OpenXM/src/ox_math/Attic/parse.h 1999/11/02 06:11:58 1.2 +++ OpenXM/src/ox_math/Attic/parse.h 1999/11/06 21:39:37 1.4 @@ -1,6 +1,5 @@ /* -*- mode: C; coding: euc-japan -*- */ -/* $OpenXM$ */ -/* $Id: parse.h,v 1.2 1999/11/02 06:11:58 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_math/parse.h,v 1.3 1999/11/02 19:51:18 ohara Exp $ */ #ifndef _PARSE_H_ @@ -15,15 +14,18 @@ #define T_STRING 258 #define T_MAGIC 2048 #define TOKEN(x) (T_MAGIC + (x)) +#define SM SM_popCMO /* トークンの種類を判定するためのマクロ */ #define MIN_T_CMO TOKEN(0) #define MAX_T_CMO TOKEN(256) -#define MIN_T_SM TOKEN(256) -#define MAX_T_SM TOKEN(1100) #define MIN_T_OX TOKEN(512) #define MAX_T_OX TOKEN(600) +#define IS_CMO 1 +#define IS_SM 2 +#define IS_OX 3 + #define PFLAG_ADDREV 1 int setflag_parse(int flag); @@ -33,5 +35,12 @@ int setgetc(int (*foo)()); int resetgetc(); int mygetc(); int setmode_mygetc(char *s, int len); + +typedef struct { + char *key; + int tag; + int token; + int type; +} symbol; #endif /* _PARSE_H_ */