[BACK]Return to parse.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Annotation of OpenXM/src/ox_toolkit/parse.h, Revision 1.4

1.3       ohara       1: /* -*- mode: C -*- */
1.4     ! ohara       2: /* $OpenXM: OpenXM/src/ox_toolkit/parse.h,v 1.3 2000/01/17 19:55:56 ohara Exp $ */
1.1       ohara       3:
                      4: #ifndef _PARSE_H_
                      5:
1.4     ! ohara       6: #define _PARSE_H_
        !             7:
        !             8: struct symbol {
        !             9:     char *key;
        !            10:     int  tag;
        !            11:     int  token;
        !            12:     int  type;
        !            13: };
1.1       ohara      14:
1.4     ! ohara      15: #include "ox_toolkit.h"
1.1       ohara      16:
1.3       ohara      17: /* Remarks: a token, which is less than 256, means a one character token. */
1.1       ohara      18:
1.3       ohara      19: /* The followings are definitions of some tokens. */
                     20: #define T_DIGIT         257
1.1       ohara      21: #define T_STRING        258
                     22: #define T_MAGIC         2048
                     23: #define TOKEN(x)        (T_MAGIC + (x))
                     24: #define SM              SM_popCMO
                     25:
1.3       ohara      26: /* Macros for distinction of kinds of tokens. */
1.1       ohara      27: #define MIN_T_CMO     TOKEN(0)
                     28: #define MAX_T_CMO     TOKEN(256)
                     29: #define MIN_T_OX      TOKEN(512)
                     30: #define MAX_T_OX      TOKEN(600)
                     31:
                     32: #define IS_CMO   1
                     33: #define IS_SM    2
                     34: #define IS_OX    3
                     35:
                     36: #endif /* _PARSE_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>