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

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