source: git/Singular/tok.h @ d1d27f1

spielwiese
Last change on this file since d1d27f1 was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • Property mode set to 100644
File size: 2.9 KB
Line 
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 MYYSTYPE
11#include <kernel/structs.h>
12#endif
13#ifndef UMINUS
14#include <Singular/grammar.h>
15#endif
16
17extern int      yylineno;
18extern char     my_yylinebuf[80];
19
20#if defined(__cplusplus)
21extern int  yyparse(void);
22#endif
23
24/* Define to use old mechanismen for saving currRing with procedures
25 */
26#define USE_IILOCALRING 1
27
28
29/* the follwing defines for infix operators should not be changed: *
30*  grammar.y does not use the symbolic names                       *
31*  scanner.l uses the identies for some optimzations              */
32#define LOGIC_OP         '&'
33#define MULDIV_OP        '/'
34#define COMP_OP          '<'
35
36#define COMMAND           UMINUS+2 /* in tok.h */
37#define ANY_TYPE          UMINUS+3
38#define IDHDL             UMINUS+4
39#define NSHDL             UMINUS+5
40
41enum {
42  ALIAS_CMD     = UMINUS + 15,
43  ATTRIB_CMD,
44  BAREISS_CMD,
45  BIGINT_CMD,
46  BRACKET_CMD,
47  BREAKPOINT_CMD,
48  CHARACTERISTIC_CMD,
49  CHARSTR_CMD,
50  CHAR_SERIES_CMD,
51  CHINREM_CMD,
52  CLOSE_CMD,
53  COLS_CMD,
54  CONTENT_CMD,
55  COUNT_CMD,
56  DBPRINT_CMD,
57  DEF_CMD,
58  DEFINED_CMD,
59  DELETE_CMD,
60  DENOMINATOR_CMD,
61  DET_CMD,
62  DUMP_CMD,
63  END_GRAMMAR,
64  ENVELOPE_CMD,
65  ERROR_CMD,
66  EXECUTE_CMD,
67  EXPORTTO_CMD,
68  EXTGCD_CMD,
69  FAC_CMD,
70  FIND_CMD,
71  FACSTD_CMD,
72  FMD_CMD,
73  FWALK_CMD,
74  FGLM_CMD,
75  FGLMQUOT_CMD,
76  FINDUNI_CMD,
77  GCD_CMD,
78  GETDUMP_CMD,
79  HIGHCORNER_CMD,
80  HRES_CMD,
81  IMPART_CMD,
82  IMPORTFROM_CMD,
83  INSERT_CMD,
84  INT_CMD,
85  INTDIV_CMD,
86  INTERPOLATE_CMD,
87  INTMOD_CMD,
88  INTVEC_CMD,
89  IS_RINGVAR,
90  JANET_CMD,
91  KERNEL_CMD,
92  KILLATTR_CMD,
93  KRES_CMD,
94  LAGSOLVE_CMD,
95  LINK_CMD,
96  LIST_CMD,
97  LOAD_CMD,
98  LRES_CMD,
99  LU_CMD,
100  LUI_CMD,
101  LUS_CMD,
102  MEMORY_CMD,
103  MONITOR_CMD,
104  MPRES_CMD,
105  MSTD_CMD,
106  NAMEOF_CMD,
107  NAMES_CMD,
108  NEWSTRUCT_CMD,
109  NCALGEBRA_CMD,
110  NC_ALGEBRA_CMD,
111  NEWTONPOLY_CMD,
112  NPARS_CMD,
113  NUMERATOR_CMD,
114  NVARS_CMD,
115  OPEN_CMD,
116  OPPOSE_CMD,
117  OPPOSITE_CMD,
118  OPTION_CMD,
119  ORDSTR_CMD,
120  PACKAGE_CMD,
121  PARSTR_CMD,
122  PFAC_CMD,
123  POINTER_CMD,
124  PRIME_CMD,
125  PRINT_CMD,
126  PRUNE_CMD,
127  QRING_CMD,
128  QRDS_CMD,
129  RANDOM_CMD,
130  RANK_CMD,
131  READ_CMD,
132  REPART_CMD,
133  RESERVEDNAME_CMD,
134  RESULTANT_CMD,
135  RINGLIST_CMD,
136  ROWS_CMD,
137  SIMPLEX_CMD,
138  SLIM_GB_CMD,
139  SQR_FREE_CMD,
140  STATUS_CMD,
141  STRING_CMD,
142  SYSTEM_CMD,
143  TEST_CMD,
144  TRANSPOSE_CMD,
145  TRACE_CMD,
146  TWOSTD_CMD,
147  TYPEOF_CMD,
148  UNIVARIATE_CMD,
149  UNLOAD_CMD,
150  URSOLVE_CMD,
151  VANDER_CMD,
152  VARIABLES_CMD,
153  VARSTR_CMD,
154  WAIT1ST_CMD,
155  WAITALL_CMD,
156  WRITE_CMD,
157  /* start system var section: VECHO */
158  VECHO,
159  VCOLMAX,
160  VTIMER,
161  VRTIMER,
162  TRACE,
163  VOICE,
164  VSHORTOUT,
165  VPRINTLEVEL,
166  /* end system var section: VPRINTLEVEL */
167
168  MAX_TOK /* must be the last, biggest token number */
169};
170
171#define NONE END_RING
172#define UNKNOWN 0
173
174#endif
Note: See TracBrowser for help on using the repository browser.