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