source: git/Singular/tok.h @ 4f80bb

fieker-DuValspielwiese
Last change on this file since 4f80bb was 4f80bb, checked in by Frank Seelisch <seelisch@…>, 14 years ago
new types fan and cone, new commands for them; normally turned off (turn on in Singular/mod2.h and kernel/mod2.h by def HAVE_FANS) git-svn-id: file:///usr/local/Singular/svn/trunk@13208 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.2 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/* $Id$ */
10
11#ifndef MYYSTYPE
12#include <kernel/structs.h>
13#endif
14#ifndef UMINUS
15#include <Singular/grammar.h>
16#endif
17
18extern int      yylineno;
19extern char     my_yylinebuf[80];
20
21#if defined(__cplusplus)
22extern int  yyparse(void);
23#endif
24
25/* Define to use old mechanismen for saving currRing with procedures
26 */
27#define USE_IILOCALRING 1
28
29
30/* the follwing defines for infix operators should not be changed: *
31*  grammar.y does not use the symbolic names                       *
32*  scanner.l uses the identies for some optimzations              */
33#define LOGIC_OP         '&'
34#define MULDIV_OP        '/'
35#define COMP_OP          '<'
36
37#define COMMAND           UMINUS+2 /* in tok.h */
38#define ANY_TYPE          UMINUS+3
39#define IDHDL             UMINUS+4
40#define NSHDL             UMINUS+5
41
42enum {
43  ALIAS_CMD     = UMINUS + 15,
44  ATTRIB_CMD,
45#ifdef HAVE_FANS
46  ADDADJ_CMD,
47  ADDMCONE_CMD,
48  ADJACENCY_CMD,
49#endif /* HAVE_FANS */
50  BAREISS_CMD,
51  BIGINT_CMD,
52  BRACKET_CMD,
53  BREAKPOINT_CMD,
54  CHARACTERISTIC_CMD,
55  CHARSTR_CMD,
56  CHAR_SERIES_CMD,
57  CLOSE_CMD,
58  COLS_CMD,
59#ifdef HAVE_FANS
60  CONE_CMD,
61#endif /* HAVE_FANS */
62  CONTENT_CMD,
63  COUNT_CMD,
64  DBPRINT_CMD,
65  DEF_CMD,
66  DEFINED_CMD,
67  DELETE_CMD,
68#ifdef HAVE_FANS
69  DELMCONE_CMD,
70#endif /* HAVE_FANS */
71  DET_CMD,
72  DUMP_CMD,
73  END_GRAMMAR,
74  ENVELOPE_CMD,
75  ERROR_CMD,
76  EXECUTE_CMD,
77  EXPORTTO_CMD,
78  EXTGCD_CMD,
79  FAC_CMD,
80#ifdef HAVE_FANS
81  FACETNS_CMD,
82  FAN_CMD,
83#endif /* HAVE_FANS */
84  FIND_CMD,
85  FACSTD_CMD,
86  FWALK_CMD,
87  FGLM_CMD,
88  FGLMQUOT_CMD,
89  FINDUNI_CMD,
90  GCD_CMD,
91  GETDUMP_CMD,
92#ifdef HAVE_FANS
93  GETPROP_CMD,
94#endif /* HAVE_FANS */
95  HIGHCORNER_CMD,
96  HRES_CMD,
97  IMPART_CMD,
98  IMPORTFROM_CMD,
99  INSERT_CMD,
100  INT_CMD,
101  INTDIV_CMD,
102  INTERPOLATE_CMD,
103  INTMOD_CMD,
104  INTVEC_CMD,
105  IS_RINGVAR,
106  JANET_CMD,
107  KERNEL_CMD,
108  KILLATTR_CMD,
109  KRES_CMD,
110  LAGSOLVE_CMD,
111  LINK_CMD,
112#ifdef HAVE_FANS
113  LINSPACE_CMD,
114#endif /* HAVE_FANS */
115  LIST_CMD,
116  LOAD_CMD,
117  LRES_CMD,
118  LU_CMD,
119  LUI_CMD,
120  LUS_CMD,
121#ifdef HAVE_FANS
122  MAXCONE_CMD,
123  MAXRAYS_CMD,
124#endif /* HAVE_FANS */
125  MEMORY_CMD,
126  MONITOR_CMD,
127  MPRES_CMD,
128  MSTD_CMD,
129  NAMEOF_CMD,
130  NAMES_CMD,
131  NCALGEBRA_CMD,
132  NC_ALGEBRA_CMD,
133  NEWTONPOLY_CMD,
134  NPARS_CMD,
135  NVARS_CMD,
136  OPEN_CMD,
137  OPPOSE_CMD,
138  OPPOSITE_CMD,
139  OPTION_CMD,
140  ORDSTR_CMD,
141  PACKAGE_CMD,
142  PARSTR_CMD,
143  PFAC_CMD,
144  POINTER_CMD,
145  PRIME_CMD,
146  PRINT_CMD,
147  PRUNE_CMD,
148  QRING_CMD,
149  RANDOM_CMD,
150  READ_CMD,
151  REPART_CMD,
152  RESERVEDNAME_CMD,
153  RESULTANT_CMD,
154  RINGLIST_CMD,
155  ROWS_CMD,
156#ifdef HAVE_FANS
157  SETPROP_CMD,
158#endif /* HAVE_FANS */
159  SIMPLEX_CMD,
160  SLIM_GB_CMD,
161  SQR_FREE_CMD,
162  STATUS_CMD,
163  STRING_CMD,
164  SYSTEM_CMD,
165  TEST_CMD,
166  TRANSPOSE_CMD,
167  TRACE_CMD,
168  TWOSTD_CMD,
169  TYPEOF_CMD,
170  UNIVARIATE_CMD,
171  UNLOAD_CMD,
172  URSOLVE_CMD,
173  VANDER_CMD,
174  VARIABLES_CMD,
175  VARSTR_CMD,
176  WRITE_CMD,
177  /* start system var section: VECHO */
178  VECHO,
179  VCOLMAX,
180  VTIMER,
181  VRTIMER,
182  TRACE,
183  VOICE,
184  VSHORTOUT,
185  VPRINTLEVEL,
186  /* end system var section: VPRINTLEVEL */
187
188  MAX_TOK /* must be the last, biggest token number */
189};
190
191#define NONE END_RING
192#define UNKNOWN 0
193
194#endif
Note: See TracBrowser for help on using the repository browser.