source: git/Singular/tok.h @ 228e0b

spielwiese
Last change on this file since 228e0b was 6993c83, checked in by Hans Schoenemann <hannes@…>, 12 years ago
fix: mod -> %, removed INTMOD_CMD (from master)
  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[0e1846]1#ifndef TOK_H
2#define TOK_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/*
[7885020]7* ABSTRACT: tokens, types for interpreter; general macros
[0e1846]8*/
9
10#ifndef MYYSTYPE
[599326]11#include <kernel/structs.h>
[0e1846]12#endif
13#ifndef UMINUS
[599326]14#include <Singular/grammar.h>
[0e1846]15#endif
16
17extern int      yylineno;
[057e93c]18extern char     my_yylinebuf[80];
[0e1846]19
20#if defined(__cplusplus)
21extern int  yyparse(void);
22#endif
23
[ec335c]24/* Define to use old mechanismen for saving currRing with procedures
25 */
26#define USE_IILOCALRING 1
27
28
[7b3094]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
[0e1846]36#define COMMAND           UMINUS+2 /* in tok.h */
37#define ANY_TYPE          UMINUS+3
38#define IDHDL             UMINUS+4
[6d281ac]39#define NSHDL             UMINUS+5
[0e1846]40
41enum {
[6d281ac]42  ALIAS_CMD     = UMINUS + 15,
43  ATTRIB_CMD,
[b07a730]44  BAREISS_CMD,
[d7626fe]45  BIGINT_CMD,
[a0f998]46  BRACKET_CMD,
[e514ee]47  BREAKPOINT_CMD,
[0e1846]48  CHARACTERISTIC_CMD,
49  CHARSTR_CMD,
50  CHAR_SERIES_CMD,
[55b1687]51  CHINREM_CMD,
[0e1846]52  CLOSE_CMD,
53  COLS_CMD,
54  CONTENT_CMD,
55  COUNT_CMD,
56  DBPRINT_CMD,
57  DEF_CMD,
58  DEFINED_CMD,
59  DELETE_CMD,
[1cbb1f4]60  DENOMINATOR_CMD,
[6ae4f5]61  DET_CMD,
[286bd57]62  DUMP_CMD,
[49eeee]63  END_GRAMMAR,
[bc36a0]64  ENVELOPE_CMD,
[50a84c]65  ERROR_CMD,
[6eb7f3]66  EXECUTE_CMD,
[22f6bc]67  EXPORTTO_CMD,
[0e1846]68  EXTGCD_CMD,
69  FAC_CMD,
[ea986d]70  FIND_CMD,
[0e1846]71  FACSTD_CMD,
[96f136]72  FMD_CMD,
[4f3177]73  FWALK_CMD,
[8bafbf0]74  FGLM_CMD,
[bae192]75  FGLMQUOT_CMD,
[d9c8d3]76  FINDUNI_CMD,
[0e1846]77  GCD_CMD,
[286bd57]78  GETDUMP_CMD,
[3eccafa]79  HIGHCORNER_CMD,
[c1489f2]80  HRES_CMD,
[3095a1]81  IMPART_CMD,
[22f6bc]82  IMPORTFROM_CMD,
[0e1846]83  INSERT_CMD,
84  INT_CMD,
[db28cee]85  INTDIV_CMD,
[b5e57e2]86  INTERPOLATE_CMD,
[0e1846]87  INTVEC_CMD,
88  IS_RINGVAR,
[b3e9984]89  JANET_CMD,
[cdd38f]90  KERNEL_CMD,
[0e1846]91  KILLATTR_CMD,
[dad52a]92  KRES_CMD,
[a5f15a]93  LAGSOLVE_CMD,
[0e1846]94  LINK_CMD,
95  LIST_CMD,
[0a3ddd]96  LOAD_CMD,
[c5f17b]97  LRES_CMD,
[f1c6bb1]98  LU_CMD,
99  LUI_CMD,
[19bf86]100  LUS_CMD,
[0e1846]101  MEMORY_CMD,
102  MONITOR_CMD,
[a5f15a]103  MPRES_CMD,
[0e1846]104  MSTD_CMD,
105  NAMEOF_CMD,
106  NAMES_CMD,
[a2faa3]107  NEWSTRUCT_CMD,
[d9a2b63]108  NCALGEBRA_CMD,
[7b315e6]109  NC_ALGEBRA_CMD,
[c7f3b7]110  NEWTONPOLY_CMD,
[0e1846]111  NPARS_CMD,
[1cbb1f4]112  NUMERATOR_CMD,
[0e1846]113  NVARS_CMD,
114  OPEN_CMD,
[bc36a0]115  OPPOSE_CMD,
116  OPPOSITE_CMD,
[0e1846]117  OPTION_CMD,
118  ORDSTR_CMD,
119  PACKAGE_CMD,
120  PARSTR_CMD,
[89de39]121  PFAC_CMD,
[46d09b]122  POINTER_CMD,
[0e1846]123  PRIME_CMD,
124  PRINT_CMD,
125  PRUNE_CMD,
126  QRING_CMD,
[4663c0]127  QRDS_CMD,
[0e1846]128  RANDOM_CMD,
[fed143]129  RANK_CMD,
[0e1846]130  READ_CMD,
[3095a1]131  REPART_CMD,
[0e1846]132  RESERVEDNAME_CMD,
133  RESULTANT_CMD,
[9b6b58]134  RINGLIST_CMD,
[0e1846]135  ROWS_CMD,
[c7f3b7]136  SIMPLEX_CMD,
[3b00f2]137  SLIM_GB_CMD,
[35cfa3]138  SQR_FREE_CMD,
[7885020]139  STATUS_CMD,
[0e1846]140  STRING_CMD,
141  SYSTEM_CMD,
142  TEST_CMD,
143  TRANSPOSE_CMD,
144  TRACE_CMD,
[a0f998]145  TWOSTD_CMD,
[0e1846]146  TYPEOF_CMD,
[f62b27]147  UNIVARIATE_CMD,
[0a3ddd]148  UNLOAD_CMD,
[a5f15a]149  URSOLVE_CMD,
150  VANDER_CMD,
[f62b27]151  VARIABLES_CMD,
[0e1846]152  VARSTR_CMD,
[6c70ef]153  WAIT1ST_CMD,
154  WAITALL_CMD,
[0e1846]155  WRITE_CMD,
156  /* start system var section: VECHO */
157  VECHO,
158  VCOLMAX,
159  VTIMER,
[ea986d]160  VRTIMER,
[0e1846]161  TRACE,
162  VOICE,
163  VSHORTOUT,
164  VPRINTLEVEL,
165  /* end system var section: VPRINTLEVEL */
166
167  MAX_TOK /* must be the last, biggest token number */
168};
169
170#define NONE END_RING
171#define UNKNOWN 0
172
173#endif
Note: See TracBrowser for help on using the repository browser.