source: git/Singular/tok.h @ f9bb68

spielwiese
Last change on this file since f9bb68 was f9bb68, checked in by Frank Seelisch <seelisch@…>, 14 years ago
implemented and documented new command 'datetime' for local date/time as string git-svn-id: file:///usr/local/Singular/svn/trunk@13152 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  DATETIME,
57  DBPRINT_CMD,
58  DEF_CMD,
59  DEFINED_CMD,
60  DELETE_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  FWALK_CMD,
73  FGLM_CMD,
74  FGLMQUOT_CMD,
75  FINDUNI_CMD,
76  GCD_CMD,
77  GETDUMP_CMD,
78  HIGHCORNER_CMD,
79  HRES_CMD,
80  IMPART_CMD,
81  IMPORTFROM_CMD,
82  INSERT_CMD,
83  INT_CMD,
84  INTDIV_CMD,
85  INTERPOLATE_CMD,
86  INTMOD_CMD,
87  INTVEC_CMD,
88  IS_RINGVAR,
89  JANET_CMD,
90  KERNEL_CMD,
91  KILLATTR_CMD,
92  KRES_CMD,
93  LAGSOLVE_CMD,
94  LINK_CMD,
95  LIST_CMD,
96  LOAD_CMD,
97  LRES_CMD,
98  LU_CMD,
99  LUI_CMD,
100  LUS_CMD,
101  MEMORY_CMD,
102  MONITOR_CMD,
103  MPRES_CMD,
104  MSTD_CMD,
105  NAMEOF_CMD,
106  NAMES_CMD,
107  NCALGEBRA_CMD,
108  NC_ALGEBRA_CMD,
109  NEWTONPOLY_CMD,
110  NPARS_CMD,
111  NVARS_CMD,
112  OPEN_CMD,
113  OPPOSE_CMD,
114  OPPOSITE_CMD,
115  OPTION_CMD,
116  ORDSTR_CMD,
117  PACKAGE_CMD,
118  PARSTR_CMD,
119  PFAC_CMD,
120  POINTER_CMD,
121  PRIME_CMD,
122  PRINT_CMD,
123  PRUNE_CMD,
124  QRING_CMD,
125  RANDOM_CMD,
126  READ_CMD,
127  REPART_CMD,
128  RESERVEDNAME_CMD,
129  RESULTANT_CMD,
130  RINGLIST_CMD,
131  ROWS_CMD,
132  SIMPLEX_CMD,
133  SLIM_GB_CMD,
134  SQR_FREE_CMD,
135  STATUS_CMD,
136  STRING_CMD,
137  SYSTEM_CMD,
138  TEST_CMD,
139  TRANSPOSE_CMD,
140  TRACE_CMD,
141  TWOSTD_CMD,
142  TYPEOF_CMD,
143  UNIVARIATE_CMD,
144  UNLOAD_CMD,
145  URSOLVE_CMD,
146  VANDER_CMD,
147  VARIABLES_CMD,
148  VARSTR_CMD,
149  WRITE_CMD,
150  /* start system var section: VECHO */
151  VECHO,
152  VPAGELENGTH,
153  VCOLMAX,
154  VTIMER,
155  VRTIMER,
156  TRACE,
157  VOICE,
158  VSHORTOUT,
159  VPRINTLEVEL,
160  /* end system var section: VPRINTLEVEL */
161
162  MAX_TOK /* must be the last, biggest token number */
163};
164
165#define NONE END_RING
166#define UNKNOWN 0
167
168#endif
Note: See TracBrowser for help on using the repository browser.