source: git/Singular/libparse.h @ 416465

spielwiese
Last change on this file since 416465 was 416465, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* bug-fixes from work with Thomas git-svn-id: file:///usr/local/Singular/svn/trunk@3826 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.4 KB
Line 
1#ifndef LIBPARSE_H
2#define LIBPARSE_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: libparse.h,v 1.11 1999-11-15 17:20:17 obachman Exp $ */
7/*
8* ABSTRACT: lib parsing
9*/
10#ifndef STANDALONE_PARSER
11#  include "subexpr.h"
12#endif
13typedef enum { LOAD_LIB, GET_INFO } lp_modes;
14typedef enum { OLD_LIBSTYLE, NEW_LIBSTYLE } lib_style_types;
15
16procinfo *iiInitSingularProcinfo(procinfov pi, char *libname,
17                                 char *procname, int line, long pos,
18                                 BOOLEAN pstatic = FALSE);
19#ifdef HAVE_NAMESPACES
20int yylplex(char *libname, char *libfile, lib_style_types *lib_style,
21           idhdl pl, BOOLEAN autoexport=FALSE, lp_modes=LOAD_LIB);
22#else /* HAVE_NAMESPACES */
23int yylplex(char *libname, char *libfile, lib_style_types *lib_style,
24            lp_modes=LOAD_LIB);
25#endif /* HAVE_NAMESPACES */
26
27void reinit_yylp();
28
29extern char * text_buffer;
30
31#  define YYLP_ERR_NONE    0
32#  define YYLP_DEF_BR2     1
33#  define YYLP_BODY_BR2    2
34#  define YYLP_BODY_BR3    3
35#  define YYLP_BODY_TMBR2  4
36#  define YYLP_BODY_TMBR3  5
37#  define YYLP_EX_BR2      6
38#  define YYLP_EX_BR3      7
39#  define YYLP_BAD_CHAR    8
40#  define YYLP_MISSQUOT    9
41#  define YYLP_MISS_BR1   10
42#  define YYLP_MISS_BR2   11
43#  define YYLP_MISS_BR3   12
44
45#  ifdef STANDALONE_PARSER
46#    define myfread fread
47#    define myfopen fopen
48#  endif
49
50#endif /* LIBPARSE_H */
51
52
Note: See TracBrowser for help on using the repository browser.