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

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

Revision 1.2, Tue Nov 2 06:11:58 1999 UTC (24 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.1: +14 -34 lines

partly support the followings:
cmo_monomial32, cmo_dms_generic, cmo_ring_by_name, cmo_indeterminate.

/* -*- mode: C; coding: euc-japan -*- */
/* $OpenXM: OpenXM/src/ox_math/parse.h,v 1.2 1999/11/02 06:11:58 ohara Exp $ */
/* $Id: parse.h,v 1.3 1999/11/01 17:58:05 ohara Exp $ */

#ifndef _PARSE_H_

#include "ox.h"

#define _PARSE_H_

/* トークンの定義 */
/* 256 より小さいものは、一文字だけのトークンである */

#define T_INTEGER       257
#define T_STRING        258
#define T_MAGIC         2048
#define TOKEN(x)        (T_MAGIC + (x))

/* トークンの種類を判定するためのマクロ */
#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 PFLAG_ADDREV   1
int setflag_parse(int flag);

cmo *parse();

int setgetc(int (*foo)());
int resetgetc();
int mygetc();
int setmode_mygetc(char *s, int len);

#endif /* _PARSE_H_ */