My Project
Loading...
Searching...
No Matches
Singular
tok.h
Go to the documentation of this file.
1
#ifndef TOK_H
2
#define TOK_H
3
/****************************************
4
* Computer Algebra System SINGULAR *
5
****************************************/
6
/*
7
* ABSTRACT: tokens, types for interpreter; general macros
8
*/
9
10
#ifndef UMINUS
11
#include "
kernel/mod2.h
"
12
#include "
Singular/grammar.h
"
13
#endif
14
15
EXTERN_VAR
int
yylineno
;
16
EXTERN_VAR
char
my_yylinebuf
[80];
17
18
#if defined(__cplusplus)
19
extern
int
yyparse
(
void
);
20
#endif
21
22
/* the follwing defines for infix operators should not be changed: *
23
* grammar.y does not use the symbolic names *
24
* scanner.l uses the identies for some optimzations */
25
#define LOGIC_OP '&'
26
#define MULDIV_OP '/'
27
#define COMP_OP '<'
28
29
#define COMMAND UMINUS+2
/* in tok.h */
30
#define ANY_TYPE UMINUS+3
31
#define IDHDL UMINUS+4
32
33
enum
{
34
ALIAS_CMD
=
UMINUS
+ 15,
35
ALIGN_CMD
,
36
ATTRIB_CMD
,
37
BAREISS_CMD
,
38
BIGINT_CMD
,
39
BRANCHTO_CMD
,
40
BRACKET_CMD
,
41
BREAKPOINT_CMD
,
42
CHARACTERISTIC_CMD
,
43
CHARSTR_CMD
,
44
CHAR_SERIES_CMD
,
45
CHINREM_CMD
,
46
CMATRIX_CMD
,
47
CNUMBER_CMD
,
48
CPOLY_CMD
,
49
CLOSE_CMD
,
50
COEFFS_CMD
,
51
COEF_CMD
,
52
COLS_CMD
,
53
CONTENT_CMD
,
54
CONTRACT_CMD
,
55
COUNT_CMD
,
56
CRING_CMD
,
57
DBPRINT_CMD
,
58
DEF_CMD
,
59
DEFINED_CMD
,
60
DEG_CMD
,
61
DEGREE_CMD
,
62
DELETE_CMD
,
63
DENOMINATOR_CMD
,
64
DET_CMD
,
65
DIFF_CMD
,
66
DIM_CMD
,
67
DIVISION_CMD
,
68
DUMP_CMD
,
69
ELIMINATION_CMD
,
70
END_GRAMMAR
,
71
ENVELOPE_CMD
,
72
ERROR_CMD
,
73
EXECUTE_CMD
,
74
EXPORTTO_CMD
,
75
EXTGCD_CMD
,
76
FAC_CMD
,
77
FAREY_CMD
,
78
FIND_CMD
,
79
FACSTD_CMD
,
80
FMD_CMD
,
81
FRES_CMD
,
82
FWALK_CMD
,
83
FGLM_CMD
,
84
FGLMQUOT_CMD
,
85
FINDUNI_CMD
,
86
GCD_CMD
,
87
GETDUMP_CMD
,
88
HIGHCORNER_CMD
,
89
HILBERT_CMD
,
90
HOMOG_CMD
,
91
HRES_CMD
,
92
IMPART_CMD
,
93
IMPORTFROM_CMD
,
94
INDEPSET_CMD
,
95
INSERT_CMD
,
96
INT_CMD
,
97
INTDIV_CMD
,
98
INTERPOLATE_CMD
,
99
INTERRED_CMD
,
100
INTERSECT_CMD
,
101
INTVEC_CMD
,
102
IS_RINGVAR
,
103
JACOB_CMD
,
104
JANET_CMD
,
105
JET_CMD
,
106
KBASE_CMD
,
107
KERNEL_CMD
,
108
KILLATTR_CMD
,
109
KRES_CMD
,
110
LAGSOLVE_CMD
,
111
LEAD_CMD
,
112
LEADCOEF_CMD
,
113
LEADEXP_CMD
,
114
LEADMONOM_CMD
,
115
LIFTSTD_CMD
,
116
LIFT_CMD
,
117
LINK_CMD
,
118
LIST_CMD
,
119
LOAD_CMD
,
120
LRES_CMD
,
121
LU_CMD
,
122
LUI_CMD
,
123
LUS_CMD
,
124
MEMORY_CMD
,
125
MINBASE_CMD
,
126
MINOR_CMD
,
127
MINRES_CMD
,
128
MODULO_CMD
,
129
MONITOR_CMD
,
130
MPRES_CMD
,
131
MRES_CMD
,
132
MSTD_CMD
,
133
MULTIPLICITY_CMD
,
134
NAMEOF_CMD
,
135
NAMES_CMD
,
136
NEWSTRUCT_CMD
,
137
NCALGEBRA_CMD
,
138
NC_ALGEBRA_CMD
,
139
NEWTONPOLY_CMD
,
140
NPARS_CMD
,
141
NUMERATOR_CMD
,
142
NVARS_CMD
,
143
ORD_CMD
,
144
OPEN_CMD
,
145
OPPOSE_CMD
,
146
OPPOSITE_CMD
,
147
OPTION_CMD
,
148
ORDSTR_CMD
,
149
PACKAGE_CMD
,
150
PARDEG_CMD
,
151
PARENT_CMD
,
152
PARSTR_CMD
,
153
PFAC_CMD
,
154
PRIME_CMD
,
155
PRINT_CMD
,
156
PRUNE_CMD
,
157
QHWEIGHT_CMD
,
158
QRING_CMD
,
159
QRDS_CMD
,
160
QUOTIENT_CMD
,
161
RANDOM_CMD
,
162
RANK_CMD
,
163
READ_CMD
,
164
REDUCE_CMD
,
165
REGULARITY_CMD
,
166
REPART_CMD
,
167
RES_CMD
,
168
RESERVEDNAME_CMD
,
169
RESERVEDNAMELIST_CMD
,
170
RESTART_CMD
,
171
RESULTANT_CMD
,
172
RIGHTSTD_CMD
,
173
RINGLIST_CMD
,
174
RING_LIST_CMD
,
175
ROWS_CMD
,
176
SBA_CMD
,
177
SIMPLEX_CMD
,
178
SIMPLIFY_CMD
,
179
SLIM_GB_CMD
,
180
SORTVEC_CMD
,
181
SQR_FREE_CMD
,
182
SRES_CMD
,
183
STATUS_CMD
,
184
STD_CMD
,
185
STRING_CMD
,
186
SUBST_CMD
,
187
SYSTEM_CMD
,
188
SYZYGY_CMD
,
189
TENSOR_CMD
,
190
TEST_CMD
,
191
TRANSPOSE_CMD
,
192
TRACE_CMD
,
193
TWOSTD_CMD
,
194
TYPEOF_CMD
,
195
UNIVARIATE_CMD
,
196
UNLOAD_CMD
,
/* unused*/
197
URSOLVE_CMD
,
198
VANDER_CMD
,
199
VARIABLES_CMD
,
200
VARSTR_CMD
,
201
VDIM_CMD
,
202
WAIT1ST_CMD
,
203
WAITALL_CMD
,
204
WEDGE_CMD
,
205
WEIGHT_CMD
,
206
WRITE_CMD
,
207
/* start system var section: VECHO */
208
VECHO
,
209
VCOLMAX
,
210
VTIMER
,
211
VRTIMER
,
212
TRACE
,
213
VOICE
,
214
VSHORTOUT
,
215
VPRINTLEVEL
,
216
/* end system var section: VPRINTLEVEL */
217
218
MAX_TOK
/* must be the last, biggest token number */
219
};
220
221
#define NONE END_RING
222
#define UNKNOWN 0
223
224
#endif
EXTERN_VAR
#define EXTERN_VAR
Definition:
globaldefs.h:6
UMINUS
@ UMINUS
Definition:
grammar.cc:351
grammar.h
mod2.h
ERROR_CMD
@ ERROR_CMD
Definition:
tok.h:72
PFAC_CMD
@ PFAC_CMD
Definition:
tok.h:153
PARSTR_CMD
@ PARSTR_CMD
Definition:
tok.h:152
HIGHCORNER_CMD
@ HIGHCORNER_CMD
Definition:
tok.h:88
ELIMINATION_CMD
@ ELIMINATION_CMD
Definition:
tok.h:69
NCALGEBRA_CMD
@ NCALGEBRA_CMD
Definition:
tok.h:137
REPART_CMD
@ REPART_CMD
Definition:
tok.h:166
VCOLMAX
@ VCOLMAX
Definition:
tok.h:209
ALIAS_CMD
@ ALIAS_CMD
Definition:
tok.h:34
SIMPLEX_CMD
@ SIMPLEX_CMD
Definition:
tok.h:177
VARIABLES_CMD
@ VARIABLES_CMD
Definition:
tok.h:199
JACOB_CMD
@ JACOB_CMD
Definition:
tok.h:103
MSTD_CMD
@ MSTD_CMD
Definition:
tok.h:132
INDEPSET_CMD
@ INDEPSET_CMD
Definition:
tok.h:94
BIGINT_CMD
@ BIGINT_CMD
Definition:
tok.h:38
SIMPLIFY_CMD
@ SIMPLIFY_CMD
Definition:
tok.h:178
CRING_CMD
@ CRING_CMD
Definition:
tok.h:56
LIST_CMD
@ LIST_CMD
Definition:
tok.h:118
FGLMQUOT_CMD
@ FGLMQUOT_CMD
Definition:
tok.h:84
RESTART_CMD
@ RESTART_CMD
Definition:
tok.h:170
VSHORTOUT
@ VSHORTOUT
Definition:
tok.h:214
BAREISS_CMD
@ BAREISS_CMD
Definition:
tok.h:37
DEG_CMD
@ DEG_CMD
Definition:
tok.h:60
VPRINTLEVEL
@ VPRINTLEVEL
Definition:
tok.h:215
LUS_CMD
@ LUS_CMD
Definition:
tok.h:123
READ_CMD
@ READ_CMD
Definition:
tok.h:163
CLOSE_CMD
@ CLOSE_CMD
Definition:
tok.h:49
SLIM_GB_CMD
@ SLIM_GB_CMD
Definition:
tok.h:179
INTVEC_CMD
@ INTVEC_CMD
Definition:
tok.h:101
RANDOM_CMD
@ RANDOM_CMD
Definition:
tok.h:161
COUNT_CMD
@ COUNT_CMD
Definition:
tok.h:55
FWALK_CMD
@ FWALK_CMD
Definition:
tok.h:82
MULTIPLICITY_CMD
@ MULTIPLICITY_CMD
Definition:
tok.h:133
NAMES_CMD
@ NAMES_CMD
Definition:
tok.h:135
PACKAGE_CMD
@ PACKAGE_CMD
Definition:
tok.h:149
BRANCHTO_CMD
@ BRANCHTO_CMD
Definition:
tok.h:39
END_GRAMMAR
@ END_GRAMMAR
Definition:
tok.h:70
MODULO_CMD
@ MODULO_CMD
Definition:
tok.h:128
JET_CMD
@ JET_CMD
Definition:
tok.h:105
CMATRIX_CMD
@ CMATRIX_CMD
Definition:
tok.h:46
HILBERT_CMD
@ HILBERT_CMD
Definition:
tok.h:89
DIFF_CMD
@ DIFF_CMD
Definition:
tok.h:65
RIGHTSTD_CMD
@ RIGHTSTD_CMD
Definition:
tok.h:172
VANDER_CMD
@ VANDER_CMD
Definition:
tok.h:198
HOMOG_CMD
@ HOMOG_CMD
Definition:
tok.h:90
NVARS_CMD
@ NVARS_CMD
Definition:
tok.h:142
MEMORY_CMD
@ MEMORY_CMD
Definition:
tok.h:124
NEWTONPOLY_CMD
@ NEWTONPOLY_CMD
Definition:
tok.h:139
DEF_CMD
@ DEF_CMD
Definition:
tok.h:58
KBASE_CMD
@ KBASE_CMD
Definition:
tok.h:106
VECHO
@ VECHO
Definition:
tok.h:208
ATTRIB_CMD
@ ATTRIB_CMD
Definition:
tok.h:36
LRES_CMD
@ LRES_CMD
Definition:
tok.h:120
IMPORTFROM_CMD
@ IMPORTFROM_CMD
Definition:
tok.h:93
SUBST_CMD
@ SUBST_CMD
Definition:
tok.h:186
CHARSTR_CMD
@ CHARSTR_CMD
Definition:
tok.h:43
HRES_CMD
@ HRES_CMD
Definition:
tok.h:91
JANET_CMD
@ JANET_CMD
Definition:
tok.h:104
REDUCE_CMD
@ REDUCE_CMD
Definition:
tok.h:164
LIFTSTD_CMD
@ LIFTSTD_CMD
Definition:
tok.h:115
KRES_CMD
@ KRES_CMD
Definition:
tok.h:109
BREAKPOINT_CMD
@ BREAKPOINT_CMD
Definition:
tok.h:41
OPTION_CMD
@ OPTION_CMD
Definition:
tok.h:147
OPEN_CMD
@ OPEN_CMD
Definition:
tok.h:144
COEFFS_CMD
@ COEFFS_CMD
Definition:
tok.h:50
LEADEXP_CMD
@ LEADEXP_CMD
Definition:
tok.h:113
QRDS_CMD
@ QRDS_CMD
Definition:
tok.h:159
CONTRACT_CMD
@ CONTRACT_CMD
Definition:
tok.h:54
CNUMBER_CMD
@ CNUMBER_CMD
Definition:
tok.h:47
LIFT_CMD
@ LIFT_CMD
Definition:
tok.h:116
TRANSPOSE_CMD
@ TRANSPOSE_CMD
Definition:
tok.h:191
LINK_CMD
@ LINK_CMD
Definition:
tok.h:117
BRACKET_CMD
@ BRACKET_CMD
Definition:
tok.h:40
STD_CMD
@ STD_CMD
Definition:
tok.h:184
SBA_CMD
@ SBA_CMD
Definition:
tok.h:176
WAITALL_CMD
@ WAITALL_CMD
Definition:
tok.h:203
EXECUTE_CMD
@ EXECUTE_CMD
Definition:
tok.h:73
TRACE
@ TRACE
Definition:
tok.h:212
DET_CMD
@ DET_CMD
Definition:
tok.h:64
DBPRINT_CMD
@ DBPRINT_CMD
Definition:
tok.h:57
CHINREM_CMD
@ CHINREM_CMD
Definition:
tok.h:45
RING_LIST_CMD
@ RING_LIST_CMD
Definition:
tok.h:174
NUMERATOR_CMD
@ NUMERATOR_CMD
Definition:
tok.h:141
NC_ALGEBRA_CMD
@ NC_ALGEBRA_CMD
Definition:
tok.h:138
URSOLVE_CMD
@ URSOLVE_CMD
Definition:
tok.h:197
ORD_CMD
@ ORD_CMD
Definition:
tok.h:143
QRING_CMD
@ QRING_CMD
Definition:
tok.h:158
PRINT_CMD
@ PRINT_CMD
Definition:
tok.h:155
FMD_CMD
@ FMD_CMD
Definition:
tok.h:80
UNIVARIATE_CMD
@ UNIVARIATE_CMD
Definition:
tok.h:195
PARDEG_CMD
@ PARDEG_CMD
Definition:
tok.h:150
MPRES_CMD
@ MPRES_CMD
Definition:
tok.h:130
NPARS_CMD
@ NPARS_CMD
Definition:
tok.h:140
PARENT_CMD
@ PARENT_CMD
Definition:
tok.h:151
MRES_CMD
@ MRES_CMD
Definition:
tok.h:131
DIVISION_CMD
@ DIVISION_CMD
Definition:
tok.h:67
PRIME_CMD
@ PRIME_CMD
Definition:
tok.h:154
LEADCOEF_CMD
@ LEADCOEF_CMD
Definition:
tok.h:112
EXPORTTO_CMD
@ EXPORTTO_CMD
Definition:
tok.h:74
IMPART_CMD
@ IMPART_CMD
Definition:
tok.h:92
NAMEOF_CMD
@ NAMEOF_CMD
Definition:
tok.h:134
TYPEOF_CMD
@ TYPEOF_CMD
Definition:
tok.h:194
KILLATTR_CMD
@ KILLATTR_CMD
Definition:
tok.h:108
REGULARITY_CMD
@ REGULARITY_CMD
Definition:
tok.h:165
WAIT1ST_CMD
@ WAIT1ST_CMD
Definition:
tok.h:202
CONTENT_CMD
@ CONTENT_CMD
Definition:
tok.h:53
STRING_CMD
@ STRING_CMD
Definition:
tok.h:185
WRITE_CMD
@ WRITE_CMD
Definition:
tok.h:206
DEGREE_CMD
@ DEGREE_CMD
Definition:
tok.h:61
OPPOSITE_CMD
@ OPPOSITE_CMD
Definition:
tok.h:146
GETDUMP_CMD
@ GETDUMP_CMD
Definition:
tok.h:87
SRES_CMD
@ SRES_CMD
Definition:
tok.h:182
WEIGHT_CMD
@ WEIGHT_CMD
Definition:
tok.h:205
ALIGN_CMD
@ ALIGN_CMD
Definition:
tok.h:35
MONITOR_CMD
@ MONITOR_CMD
Definition:
tok.h:129
VARSTR_CMD
@ VARSTR_CMD
Definition:
tok.h:200
PRUNE_CMD
@ PRUNE_CMD
Definition:
tok.h:156
STATUS_CMD
@ STATUS_CMD
Definition:
tok.h:183
DUMP_CMD
@ DUMP_CMD
Definition:
tok.h:68
RESERVEDNAMELIST_CMD
@ RESERVEDNAMELIST_CMD
Definition:
tok.h:169
FIND_CMD
@ FIND_CMD
Definition:
tok.h:78
ENVELOPE_CMD
@ ENVELOPE_CMD
Definition:
tok.h:71
COEF_CMD
@ COEF_CMD
Definition:
tok.h:51
INTERRED_CMD
@ INTERRED_CMD
Definition:
tok.h:99
WEDGE_CMD
@ WEDGE_CMD
Definition:
tok.h:204
SQR_FREE_CMD
@ SQR_FREE_CMD
Definition:
tok.h:181
DELETE_CMD
@ DELETE_CMD
Definition:
tok.h:62
SORTVEC_CMD
@ SORTVEC_CMD
Definition:
tok.h:180
FACSTD_CMD
@ FACSTD_CMD
Definition:
tok.h:79
MINOR_CMD
@ MINOR_CMD
Definition:
tok.h:126
VTIMER
@ VTIMER
Definition:
tok.h:210
QHWEIGHT_CMD
@ QHWEIGHT_CMD
Definition:
tok.h:157
VRTIMER
@ VRTIMER
Definition:
tok.h:211
RINGLIST_CMD
@ RINGLIST_CMD
Definition:
tok.h:173
LEAD_CMD
@ LEAD_CMD
Definition:
tok.h:111
ORDSTR_CMD
@ ORDSTR_CMD
Definition:
tok.h:148
LOAD_CMD
@ LOAD_CMD
Definition:
tok.h:119
DENOMINATOR_CMD
@ DENOMINATOR_CMD
Definition:
tok.h:63
TWOSTD_CMD
@ TWOSTD_CMD
Definition:
tok.h:193
FINDUNI_CMD
@ FINDUNI_CMD
Definition:
tok.h:85
VOICE
@ VOICE
Definition:
tok.h:213
CPOLY_CMD
@ CPOLY_CMD
Definition:
tok.h:48
INTDIV_CMD
@ INTDIV_CMD
Definition:
tok.h:97
TRACE_CMD
@ TRACE_CMD
Definition:
tok.h:192
INT_CMD
@ INT_CMD
Definition:
tok.h:96
QUOTIENT_CMD
@ QUOTIENT_CMD
Definition:
tok.h:160
INTERSECT_CMD
@ INTERSECT_CMD
Definition:
tok.h:100
KERNEL_CMD
@ KERNEL_CMD
Definition:
tok.h:107
INSERT_CMD
@ INSERT_CMD
Definition:
tok.h:95
LUI_CMD
@ LUI_CMD
Definition:
tok.h:122
EXTGCD_CMD
@ EXTGCD_CMD
Definition:
tok.h:75
VDIM_CMD
@ VDIM_CMD
Definition:
tok.h:201
TEST_CMD
@ TEST_CMD
Definition:
tok.h:190
GCD_CMD
@ GCD_CMD
Definition:
tok.h:86
SYSTEM_CMD
@ SYSTEM_CMD
Definition:
tok.h:187
MINBASE_CMD
@ MINBASE_CMD
Definition:
tok.h:125
SYZYGY_CMD
@ SYZYGY_CMD
Definition:
tok.h:188
FAREY_CMD
@ FAREY_CMD
Definition:
tok.h:77
INTERPOLATE_CMD
@ INTERPOLATE_CMD
Definition:
tok.h:98
LEADMONOM_CMD
@ LEADMONOM_CMD
Definition:
tok.h:114
DIM_CMD
@ DIM_CMD
Definition:
tok.h:66
NEWSTRUCT_CMD
@ NEWSTRUCT_CMD
Definition:
tok.h:136
ROWS_CMD
@ ROWS_CMD
Definition:
tok.h:175
RESERVEDNAME_CMD
@ RESERVEDNAME_CMD
Definition:
tok.h:168
RESULTANT_CMD
@ RESULTANT_CMD
Definition:
tok.h:171
OPPOSE_CMD
@ OPPOSE_CMD
Definition:
tok.h:145
TENSOR_CMD
@ TENSOR_CMD
Definition:
tok.h:189
DEFINED_CMD
@ DEFINED_CMD
Definition:
tok.h:59
MAX_TOK
@ MAX_TOK
Definition:
tok.h:218
FRES_CMD
@ FRES_CMD
Definition:
tok.h:81
IS_RINGVAR
@ IS_RINGVAR
Definition:
tok.h:102
CHARACTERISTIC_CMD
@ CHARACTERISTIC_CMD
Definition:
tok.h:42
LU_CMD
@ LU_CMD
Definition:
tok.h:121
COLS_CMD
@ COLS_CMD
Definition:
tok.h:52
FAC_CMD
@ FAC_CMD
Definition:
tok.h:76
MINRES_CMD
@ MINRES_CMD
Definition:
tok.h:127
LAGSOLVE_CMD
@ LAGSOLVE_CMD
Definition:
tok.h:110
CHAR_SERIES_CMD
@ CHAR_SERIES_CMD
Definition:
tok.h:44
FGLM_CMD
@ FGLM_CMD
Definition:
tok.h:83
UNLOAD_CMD
@ UNLOAD_CMD
Definition:
tok.h:196
RES_CMD
@ RES_CMD
Definition:
tok.h:167
RANK_CMD
@ RANK_CMD
Definition:
tok.h:162
my_yylinebuf
EXTERN_VAR char my_yylinebuf[80]
Definition:
tok.h:16
yyparse
int yyparse(void)
Definition:
grammar.cc:2111
yylineno
EXTERN_VAR int yylineno
Definition:
tok.h:15
Generated on Mon Feb 27 2023 10:53:50 for My Project by
doxygen 1.9.5
for
Singular