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 |
---|
13 | typedef enum { LOAD_LIB, GET_INFO } lp_modes; |
---|
14 | typedef enum { OLD_LIBSTYLE, NEW_LIBSTYLE } lib_style_types; |
---|
15 | |
---|
16 | procinfo *iiInitSingularProcinfo(procinfov pi, char *libname, |
---|
17 | char *procname, int line, long pos, |
---|
18 | BOOLEAN pstatic = FALSE); |
---|
19 | #ifdef HAVE_NAMESPACES |
---|
20 | int yylplex(char *libname, char *libfile, lib_style_types *lib_style, |
---|
21 | idhdl pl, BOOLEAN autoexport=FALSE, lp_modes=LOAD_LIB); |
---|
22 | #else /* HAVE_NAMESPACES */ |
---|
23 | int yylplex(char *libname, char *libfile, lib_style_types *lib_style, |
---|
24 | lp_modes=LOAD_LIB); |
---|
25 | #endif /* HAVE_NAMESPACES */ |
---|
26 | |
---|
27 | void reinit_yylp(); |
---|
28 | |
---|
29 | extern 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 | |
---|