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

File: [local] / OpenXM / src / ox_toolkit / parse.h (download)

Revision 1.4, Fri Mar 10 12:24:39 2000 UTC (24 years, 2 months ago) by ohara
Branch: MAIN
CVS Tags: new-mathcap-branch, maekawa-ipv6, R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3, RELEASE_1_1_2, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.3: +10 -21 lines

ox.h and ox_tag.h have been renamed

/* -*- mode: C -*- */
/* $OpenXM: OpenXM/src/ox_toolkit/parse.h,v 1.4 2000/03/10 12:24:39 ohara Exp $ */

#ifndef _PARSE_H_

#define _PARSE_H_

struct symbol {
    char *key;
    int  tag;
    int  token;
    int  type;
};

#include "ox_toolkit.h"

/* Remarks: a token, which is less than 256, means a one character token. */

/* The followings are definitions of some tokens. */
#define T_DIGIT         257
#define T_STRING        258
#define T_MAGIC         2048
#define TOKEN(x)        (T_MAGIC + (x))
#define SM              SM_popCMO

/* Macros for distinction of kinds of tokens. */
#define MIN_T_CMO     TOKEN(0)
#define MAX_T_CMO     TOKEN(256)
#define MIN_T_OX      TOKEN(512)
#define MAX_T_OX      TOKEN(600)

#define IS_CMO   1
#define IS_SM    2
#define IS_OX    3

#endif /* _PARSE_H_ */