version 1.3, 1999/11/02 19:51:18 |
version 1.5, 1999/11/07 12:12:56 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM: OpenXM/src/ox_math/parse.h,v 1.2 1999/11/02 06:11:58 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_math/parse.h,v 1.4 1999/11/06 21:39:37 ohara Exp $ */ |
/* $Id$ */ |
|
|
|
#ifndef _PARSE_H_ |
#ifndef _PARSE_H_ |
|
|
|
|
#define MIN_T_OX TOKEN(512) |
#define MIN_T_OX TOKEN(512) |
#define MAX_T_OX TOKEN(600) |
#define MAX_T_OX TOKEN(600) |
|
|
|
#define IS_CMO 1 |
|
#define IS_SM 2 |
|
#define IS_OX 3 |
|
|
#define PFLAG_ADDREV 1 |
#define PFLAG_ADDREV 1 |
int setflag_parse(int flag); |
int setflag_parse(int flag); |
|
|
Line 32 int setgetc(int (*foo)()); |
|
Line 35 int setgetc(int (*foo)()); |
|
int resetgetc(); |
int resetgetc(); |
int mygetc(); |
int mygetc(); |
int setmode_mygetc(char *s, int len); |
int setmode_mygetc(char *s, int len); |
|
|
|
typedef struct { |
|
char *key; |
|
int tag; |
|
int token; |
|
int type; |
|
} symbol; |
|
|
|
symbol* lookup_by_symbol(char *key); |
|
symbol* lookup_by_token(int tok); |
|
symbol* lookup_by_tag(int tag); |
|
symbol* lookup(int i); |
|
|
#endif /* _PARSE_H_ */ |
#endif /* _PARSE_H_ */ |