source: git/Singular/tok.h @ 99bdcf

spielwiese
Last change on this file since 99bdcf was 599326, checked in by Kai Krüger <krueger@…>, 14 years ago
Anne, Kai, Frank: - changes to #include "..." statements to allow cleaner build structure - affected directories: omalloc, kernel, Singular - not yet done: IntergerProgramming git-svn-id: file:///usr/local/Singular/svn/trunk@13032 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.8 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  BAREISS_CMD,
46  BIGINT_CMD,
47  BRACKET_CMD,
48  BREAKPOINT_CMD,
49  CHARACTERISTIC_CMD,
50  CHARSTR_CMD,
51  CHAR_SERIES_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  DET_CMD,
61  DUMP_CMD,
62  END_GRAMMAR,
63  ENVELOPE_CMD,
64  ERROR_CMD,
65  EXECUTE_CMD,
66  EXPORTTO_CMD,
67  EXTGCD_CMD,
68  FAC_CMD,
69  FIND_CMD,
70  FACSTD_CMD,
71  FWALK_CMD,
72  FGLM_CMD,
73  FGLMQUOT_CMD,
74  FINDUNI_CMD,
75  GCD_CMD,
76  GETDUMP_CMD,
77  HIGHCORNER_CMD,
78  HRES_CMD,
79  IMPART_CMD,
80  IMPORTFROM_CMD,
81  INSERT_CMD,
82  INT_CMD,
83  INTDIV_CMD,
84  INTERPOLATE_CMD,
85  INTMOD_CMD,
86  INTVEC_CMD,
87  IS_RINGVAR,
88  JANET_CMD,
89  KERNEL_CMD,
90  KILLATTR_CMD,
91  KRES_CMD,
92  LAGSOLVE_CMD,
93  LINK_CMD,
94  LIST_CMD,
95  LOAD_CMD,
96  LRES_CMD,
97  LU_CMD,
98  LUI_CMD,
99  LUS_CMD,
100  MEMORY_CMD,
101  MONITOR_CMD,
102  MPRES_CMD,
103  MSTD_CMD,
104  NAMEOF_CMD,
105  NAMES_CMD,
106  NCALGEBRA_CMD,
107  NC_ALGEBRA_CMD,
108  NEWTONPOLY_CMD,
109  NPARS_CMD,
110  NVARS_CMD,
111  OPEN_CMD,
112  OPPOSE_CMD,
113  OPPOSITE_CMD,
114  OPTION_CMD,
115  ORDSTR_CMD,
116  PACKAGE_CMD,
117  PARSTR_CMD,
118  PFAC_CMD,
119  POINTER_CMD,
120  PRIME_CMD,
121  PRINT_CMD,
122  PRUNE_CMD,
123  QRING_CMD,
124  RANDOM_CMD,
125  READ_CMD,
126  REPART_CMD,
127  RESERVEDNAME_CMD,
128  RESULTANT_CMD,
129  RINGLIST_CMD,
130  ROWS_CMD,
131  SIMPLEX_CMD,
132  SLIM_GB_CMD,
133  SQR_FREE_CMD,
134  STATUS_CMD,
135  STRING_CMD,
136  SYSTEM_CMD,
137  TEST_CMD,
138  TRANSPOSE_CMD,
139  TRACE_CMD,
140  TWOSTD_CMD,
141  TYPEOF_CMD,
142  UNIVARIATE_CMD,
143  UNLOAD_CMD,
144  URSOLVE_CMD,
145  VANDER_CMD,
146  VARIABLES_CMD,
147  VARSTR_CMD,
148  WRITE_CMD,
149  /* start system var section: VECHO */
150  VECHO,
151  VPAGELENGTH,
152  VCOLMAX,
153  VTIMER,
154  VRTIMER,
155  TRACE,
156  VOICE,
157  VSHORTOUT,
158  VPRINTLEVEL,
159  /* end system var section: VPRINTLEVEL */
160
161  MAX_TOK /* must be the last, biggest token number */
162};
163
164#define NONE END_RING
165#define UNKNOWN 0
166
167#endif
Note: See TracBrowser for help on using the repository browser.