Annotation of OpenXM/src/ox_math/parse.h, Revision 1.1.1.1
1.1 ohara 1: /* -*- mode: C; coding: euc-japan -*- */
2: /* $OpenXM$ */
3: /* $Id: parse.h,v 1.1 1999/10/02 03:16:19 ohara Exp ohara $ */
4:
5: #ifndef _PARSE_H_
6:
7: #include "ox.h"
8:
9: #define _PARSE_H_
10:
11: /* トークンを定義する */
12: /* 2048 より小さいのは特別なもの */
13:
14: #define T_INTEGER 257
15: #define T_STRING 258
16:
17: #define T_MAGIC 2048
18:
19: #define T_CMO_NULL (T_MAGIC + CMO_NULL)
20: #define T_CMO_INT32 (T_MAGIC + CMO_INT32)
21: #define T_CMO_STRING (T_MAGIC + CMO_STRING)
22: #define T_CMO_LIST (T_MAGIC + CMO_LIST)
23: #define T_CMO_ZZ (T_MAGIC + CMO_ZZ)
24: #define T_CMO_ZERO (T_MAGIC + CMO_ZERO)
25: #define T_CMO_DATUM (T_MAGIC + CMO_DATUM)
26: #define T_CMO_ERROR2 (T_MAGIC + CMO_ERROR2)
27:
28: #define T_SM_popCMO (T_MAGIC + SM_popCMO)
29: #define T_SM_popString (T_MAGIC + SM_popString)
30: #define T_SM_mathcap (T_MAGIC + SM_mathcap)
31: #define T_SM_pops (T_MAGIC + SM_pops)
32: #define T_SM_executeStringByLocalParser (T_MAGIC + SM_executeStringByLocalParser)
33: #define T_SM_executeFunction (T_MAGIC + SM_executeFunction)
34: #define T_SM_setMathcap (T_MAGIC + SM_setMathcap)
35: #define T_SM_control_kill (T_MAGIC + SM_control_kill)
36: #define T_SM_control_reset_connection (T_MAGIC + SM_control_reset_connection)
37:
38: #define T_OX_COMMAND (T_MAGIC + OX_COMMAND)
39: #define T_OX_DATA (T_MAGIC + OX_DATA)
40:
41: /* lexical analyzer で用いる属性値の共用体の定義 */
42: typedef union{
43: int d;
44: char* sym;
45: } lex_value_t;
46:
47: int lex();
48: cmo *parse();
49:
50: int cmo_addrev; /* CMO の省略記法を許すか否かのフラグ */
51:
52: int setgetc(int (*foo)());
53: int resetgetc();
54: int mygetc();
55: int setmode_mygetc(char *s, int len);
56:
57: #endif /* _PARSE_H_ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>