Loading...
Searching...
No Matches
tok.h
Go to the documentation of this file.
#ifndef TOK_H
#define TOK_H
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT: tokens, types for interpreter; general macros
*/
#ifndef UMINUS
#include "kernel/mod2.h"
#include "Singular/grammar.h"
#endif
EXTERN_VAR int yylineno;
EXTERN_VAR char my_yylinebuf[80];
#if defined(__cplusplus)
extern int yyparse(void);
#endif
/* the following defines for infix operators should not be changed: *
* grammar.y does not use the symbolic names *
* scanner.l uses the identities for some optimizations */
#define LOGIC_OP '&'
#define MULDIV_OP '/'
#define COMP_OP '<'
#define COMMAND UMINUS+2 /* in tok.h */
#define ANY_TYPE UMINUS+3
#define IDHDL UMINUS+4
enum {
ALIAS_CMD = UMINUS + 15,
ALIGN_CMD,
ATTRIB_CMD,
BAREISS_CMD,
BIGINT_CMD,
BRANCHTO_CMD,
BRACKET_CMD,
BREAKPOINT_CMD,
CHARACTERISTIC_CMD,
CHARSTR_CMD,
CHAR_SERIES_CMD,
CHINREM_CMD,
CMATRIX_CMD,
CNUMBER_CMD,
CPOLY_CMD,
CLOSE_CMD,
COEFFS_CMD,
COEF_CMD,
COLS_CMD,
CONTENT_CMD,
CONTRACT_CMD,
COUNT_CMD,
CRING_CMD,
DBPRINT_CMD,
DEF_CMD,
DEFINED_CMD,
DEG_CMD,
DEGREE_CMD,
DELETE_CMD,
DENOMINATOR_CMD,
DET_CMD,
DIFF_CMD,
DIM_CMD,
DIVISION_CMD,
DUMP_CMD,
ELIMINATION_CMD,
END_GRAMMAR,
ENVELOPE_CMD,
ERROR_CMD,
EXECUTE_CMD,
EXPORTTO_CMD,
EXTGCD_CMD,
FAC_CMD,
FAREY_CMD,
FIND_CMD,
FACSTD_CMD,
FMD_CMD,
FRES_CMD,
FWALK_CMD,
FGLM_CMD,
FGLMQUOT_CMD,
FINDUNI_CMD,
GCD_CMD,
GETDUMP_CMD,
HIGHCORNER_CMD,
HILBERT_CMD,
HOMOG_CMD,
HRES_CMD,
IMPART_CMD,
IMPORTFROM_CMD,
INDEPSET_CMD,
INSERT_CMD,
INT_CMD,
INTDIV_CMD,
INTERPOLATE_CMD,
INTERRED_CMD,
INTERSECT_CMD,
INTVEC_CMD,
IS_RINGVAR,
JACOB_CMD,
JANET_CMD,
JET_CMD,
KBASE_CMD,
KERNEL_CMD,
KILLATTR_CMD,
KRES_CMD,
LAGSOLVE_CMD,
LEAD_CMD,
LEADCOEF_CMD,
LEADEXP_CMD,
LEADMONOM_CMD,
LIFTSTD_CMD,
LIFT_CMD,
LINK_CMD,
LIST_CMD,
LOAD_CMD,
LRES_CMD,
LU_CMD,
LUI_CMD,
LUS_CMD,
MEMORY_CMD,
MINBASE_CMD,
MINOR_CMD,
MINRES_CMD,
MODULO_CMD,
MONITOR_CMD,
MPRES_CMD,
MRES_CMD,
MRES_MAP_CMD,
MSTD_CMD,
MULTIPLICITY_CMD,
NAMEOF_CMD,
NAMES_CMD,
NEWSTRUCT_CMD,
NCALGEBRA_CMD,
NC_ALGEBRA_CMD,
NEWTONPOLY_CMD,
NPARS_CMD,
NUMERATOR_CMD,
NVARS_CMD,
ORD_CMD,
OPEN_CMD,
OPPOSE_CMD,
OPPOSITE_CMD,
OPTION_CMD,
ORDSTR_CMD,
PACKAGE_CMD,
PARDEG_CMD,
PARENT_CMD,
PARSTR_CMD,
PFAC_CMD,
PRIME_CMD,
PRINT_CMD,
PRUNE_CMD,
PRUNE_MAP_CMD,
QHWEIGHT_CMD,
QRING_CMD,
QRDS_CMD,
QUOTIENT_CMD,
RANDOM_CMD,
RANK_CMD,
READ_CMD,
REDUCE_CMD,
REGULARITY_CMD,
REPART_CMD,
RES_CMD,
RESERVEDNAME_CMD,
RESERVEDNAMELIST_CMD,
RESTART_CMD,
RESULTANT_CMD,
RIGHTSTD_CMD,
RINGLIST_CMD,
RING_LIST_CMD,
ROWS_CMD,
SBA_CMD,
SIMPLEX_CMD,
SIMPLIFY_CMD,
SLIM_GB_CMD,
SORTVEC_CMD,
SQR_FREE_CMD,
SRES_CMD,
STATUS_CMD,
STD_CMD,
STRING_CMD,
SUBST_CMD,
SYSTEM_CMD,
SYZYGY_CMD,
TENSOR_CMD,
TEST_CMD,
TRANSPOSE_CMD,
TRACE_CMD,
TWOSTD_CMD,
TYPEOF_CMD,
UNIVARIATE_CMD,
UNLOAD_CMD, /* unused*/
URSOLVE_CMD,
VANDER_CMD,
VARIABLES_CMD,
VARSTR_CMD,
VDIM_CMD,
WAIT1ST_CMD,
WAITALL_CMD,
WEDGE_CMD,
WEIGHT_CMD,
WRITE_CMD,
/* start system var section: VECHO */
VECHO,
VCOLMAX,
VTIMER,
VRTIMER,
TRACE,
VOICE,
VSHORTOUT,
VPRINTLEVEL,
/* end system var section: VPRINTLEVEL */
MAX_TOK /* must be the last, biggest token number */
};
#define NONE END_RING
#define UNKNOWN 0
#endif
yylineno
VAR int yylineno
Definition febase.cc:40
my_yylinebuf
VAR char my_yylinebuf[80]
Definition febase.cc:44
EXTERN_VAR
#define EXTERN_VAR
Definition globaldefs.h:6
UMINUS
@ UMINUS
Definition grammar.cc:352
grammar.h
mod2.h
ERROR_CMD
@ ERROR_CMD
Definition tok.h:72
PFAC_CMD
@ PFAC_CMD
Definition tok.h:154
PARSTR_CMD
@ PARSTR_CMD
Definition tok.h:153
HIGHCORNER_CMD
@ HIGHCORNER_CMD
Definition tok.h:88
ELIMINATION_CMD
@ ELIMINATION_CMD
Definition tok.h:69
NCALGEBRA_CMD
@ NCALGEBRA_CMD
Definition tok.h:138
REPART_CMD
@ REPART_CMD
Definition tok.h:168
VCOLMAX
@ VCOLMAX
Definition tok.h:211
ALIAS_CMD
@ ALIAS_CMD
Definition tok.h:34
SIMPLEX_CMD
@ SIMPLEX_CMD
Definition tok.h:179
VARIABLES_CMD
@ VARIABLES_CMD
Definition tok.h:201
JACOB_CMD
@ JACOB_CMD
Definition tok.h:103
MSTD_CMD
@ MSTD_CMD
Definition tok.h:133
INDEPSET_CMD
@ INDEPSET_CMD
Definition tok.h:94
BIGINT_CMD
@ BIGINT_CMD
Definition tok.h:38
SIMPLIFY_CMD
@ SIMPLIFY_CMD
Definition tok.h:180
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:172
VSHORTOUT
@ VSHORTOUT
Definition tok.h:216
BAREISS_CMD
@ BAREISS_CMD
Definition tok.h:37
DEG_CMD
@ DEG_CMD
Definition tok.h:60
VPRINTLEVEL
@ VPRINTLEVEL
Definition tok.h:217
LUS_CMD
@ LUS_CMD
Definition tok.h:123
READ_CMD
@ READ_CMD
Definition tok.h:165
CLOSE_CMD
@ CLOSE_CMD
Definition tok.h:49
SLIM_GB_CMD
@ SLIM_GB_CMD
Definition tok.h:181
INTVEC_CMD
@ INTVEC_CMD
Definition tok.h:101
RANDOM_CMD
@ RANDOM_CMD
Definition tok.h:163
COUNT_CMD
@ COUNT_CMD
Definition tok.h:55
FWALK_CMD
@ FWALK_CMD
Definition tok.h:82
MULTIPLICITY_CMD
@ MULTIPLICITY_CMD
Definition tok.h:134
NAMES_CMD
@ NAMES_CMD
Definition tok.h:136
PACKAGE_CMD
@ PACKAGE_CMD
Definition tok.h:150
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:174
VANDER_CMD
@ VANDER_CMD
Definition tok.h:200
HOMOG_CMD
@ HOMOG_CMD
Definition tok.h:90
NVARS_CMD
@ NVARS_CMD
Definition tok.h:143
MEMORY_CMD
@ MEMORY_CMD
Definition tok.h:124
NEWTONPOLY_CMD
@ NEWTONPOLY_CMD
Definition tok.h:140
DEF_CMD
@ DEF_CMD
Definition tok.h:58
KBASE_CMD
@ KBASE_CMD
Definition tok.h:106
VECHO
@ VECHO
Definition tok.h:210
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:188
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:166
LIFTSTD_CMD
@ LIFTSTD_CMD
Definition tok.h:115
KRES_CMD
@ KRES_CMD
Definition tok.h:109
MRES_MAP_CMD
@ MRES_MAP_CMD
Definition tok.h:132
BREAKPOINT_CMD
@ BREAKPOINT_CMD
Definition tok.h:41
OPTION_CMD
@ OPTION_CMD
Definition tok.h:148
OPEN_CMD
@ OPEN_CMD
Definition tok.h:145
COEFFS_CMD
@ COEFFS_CMD
Definition tok.h:50
LEADEXP_CMD
@ LEADEXP_CMD
Definition tok.h:113
QRDS_CMD
@ QRDS_CMD
Definition tok.h:161
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:193
LINK_CMD
@ LINK_CMD
Definition tok.h:117
BRACKET_CMD
@ BRACKET_CMD
Definition tok.h:40
STD_CMD
@ STD_CMD
Definition tok.h:186
SBA_CMD
@ SBA_CMD
Definition tok.h:178
WAITALL_CMD
@ WAITALL_CMD
Definition tok.h:205
EXECUTE_CMD
@ EXECUTE_CMD
Definition tok.h:73
TRACE
@ TRACE
Definition tok.h:214
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:176
NUMERATOR_CMD
@ NUMERATOR_CMD
Definition tok.h:142
NC_ALGEBRA_CMD
@ NC_ALGEBRA_CMD
Definition tok.h:139
URSOLVE_CMD
@ URSOLVE_CMD
Definition tok.h:199
ORD_CMD
@ ORD_CMD
Definition tok.h:144
QRING_CMD
@ QRING_CMD
Definition tok.h:160
PRINT_CMD
@ PRINT_CMD
Definition tok.h:156
FMD_CMD
@ FMD_CMD
Definition tok.h:80
UNIVARIATE_CMD
@ UNIVARIATE_CMD
Definition tok.h:197
PARDEG_CMD
@ PARDEG_CMD
Definition tok.h:151
MPRES_CMD
@ MPRES_CMD
Definition tok.h:130
NPARS_CMD
@ NPARS_CMD
Definition tok.h:141
PARENT_CMD
@ PARENT_CMD
Definition tok.h:152
MRES_CMD
@ MRES_CMD
Definition tok.h:131
DIVISION_CMD
@ DIVISION_CMD
Definition tok.h:67
PRIME_CMD
@ PRIME_CMD
Definition tok.h:155
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:135
PRUNE_MAP_CMD
@ PRUNE_MAP_CMD
Definition tok.h:158
TYPEOF_CMD
@ TYPEOF_CMD
Definition tok.h:196
KILLATTR_CMD
@ KILLATTR_CMD
Definition tok.h:108
REGULARITY_CMD
@ REGULARITY_CMD
Definition tok.h:167
WAIT1ST_CMD
@ WAIT1ST_CMD
Definition tok.h:204
CONTENT_CMD
@ CONTENT_CMD
Definition tok.h:53
STRING_CMD
@ STRING_CMD
Definition tok.h:187
WRITE_CMD
@ WRITE_CMD
Definition tok.h:208
DEGREE_CMD
@ DEGREE_CMD
Definition tok.h:61
OPPOSITE_CMD
@ OPPOSITE_CMD
Definition tok.h:147
GETDUMP_CMD
@ GETDUMP_CMD
Definition tok.h:87
SRES_CMD
@ SRES_CMD
Definition tok.h:184
WEIGHT_CMD
@ WEIGHT_CMD
Definition tok.h:207
ALIGN_CMD
@ ALIGN_CMD
Definition tok.h:35
MONITOR_CMD
@ MONITOR_CMD
Definition tok.h:129
VARSTR_CMD
@ VARSTR_CMD
Definition tok.h:202
PRUNE_CMD
@ PRUNE_CMD
Definition tok.h:157
STATUS_CMD
@ STATUS_CMD
Definition tok.h:185
DUMP_CMD
@ DUMP_CMD
Definition tok.h:68
RESERVEDNAMELIST_CMD
@ RESERVEDNAMELIST_CMD
Definition tok.h:171
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:206
SQR_FREE_CMD
@ SQR_FREE_CMD
Definition tok.h:183
DELETE_CMD
@ DELETE_CMD
Definition tok.h:62
SORTVEC_CMD
@ SORTVEC_CMD
Definition tok.h:182
FACSTD_CMD
@ FACSTD_CMD
Definition tok.h:79
MINOR_CMD
@ MINOR_CMD
Definition tok.h:126
VTIMER
@ VTIMER
Definition tok.h:212
QHWEIGHT_CMD
@ QHWEIGHT_CMD
Definition tok.h:159
VRTIMER
@ VRTIMER
Definition tok.h:213
RINGLIST_CMD
@ RINGLIST_CMD
Definition tok.h:175
LEAD_CMD
@ LEAD_CMD
Definition tok.h:111
ORDSTR_CMD
@ ORDSTR_CMD
Definition tok.h:149
LOAD_CMD
@ LOAD_CMD
Definition tok.h:119
DENOMINATOR_CMD
@ DENOMINATOR_CMD
Definition tok.h:63
TWOSTD_CMD
@ TWOSTD_CMD
Definition tok.h:195
FINDUNI_CMD
@ FINDUNI_CMD
Definition tok.h:85
VOICE
@ VOICE
Definition tok.h:215
CPOLY_CMD
@ CPOLY_CMD
Definition tok.h:48
INTDIV_CMD
@ INTDIV_CMD
Definition tok.h:97
TRACE_CMD
@ TRACE_CMD
Definition tok.h:194
INT_CMD
@ INT_CMD
Definition tok.h:96
QUOTIENT_CMD
@ QUOTIENT_CMD
Definition tok.h:162
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:203
TEST_CMD
@ TEST_CMD
Definition tok.h:192
GCD_CMD
@ GCD_CMD
Definition tok.h:86
SYSTEM_CMD
@ SYSTEM_CMD
Definition tok.h:189
MINBASE_CMD
@ MINBASE_CMD
Definition tok.h:125
SYZYGY_CMD
@ SYZYGY_CMD
Definition tok.h:190
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:137
ROWS_CMD
@ ROWS_CMD
Definition tok.h:177
RESERVEDNAME_CMD
@ RESERVEDNAME_CMD
Definition tok.h:170
RESULTANT_CMD
@ RESULTANT_CMD
Definition tok.h:173
OPPOSE_CMD
@ OPPOSE_CMD
Definition tok.h:146
TENSOR_CMD
@ TENSOR_CMD
Definition tok.h:191
DEFINED_CMD
@ DEFINED_CMD
Definition tok.h:59
MAX_TOK
@ MAX_TOK
Definition tok.h:220
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:198
RES_CMD
@ RES_CMD
Definition tok.h:169
RANK_CMD
@ RANK_CMD
Definition tok.h:164
yyparse
int yyparse(void)
Definition grammar.cc:2149