Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Testing latest pari + WASM + node.js... and it works?! Wow.

28495 views
License: GPL3
ubuntu2004
1
/* A Bison parser, made by GNU Bison 3.3.2. */
2
3
/* Bison interface for Yacc-like parsers in C
4
5
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
6
Inc.
7
8
This program is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21
/* As a special exception, you may create a larger work that contains
22
part or all of the Bison parser skeleton and distribute that work
23
under terms of your choice, so long as that work isn't itself a
24
parser generator using the skeleton or a modified version thereof
25
as a parser skeleton. Alternatively, if you modify or redistribute
26
the parser skeleton itself, you may (at your option) remove this
27
special exception, which will cause the skeleton and the resulting
28
Bison output files to be licensed under the GNU General Public
29
License without this special exception.
30
31
This special exception was added by the Free Software Foundation in
32
version 2.2 of Bison. */
33
34
/* Undocumented macros, especially those whose name start with YY_,
35
are private implementation details. Do not rely on them. */
36
37
#ifndef YY_PARI_SRC_LANGUAGE_PARSE_H_INCLUDED
38
# define YY_PARI_SRC_LANGUAGE_PARSE_H_INCLUDED
39
/* Debug traces. */
40
#ifndef PARI_DEBUG
41
# if defined YYDEBUG
42
#if YYDEBUG
43
# define PARI_DEBUG 1
44
# else
45
# define PARI_DEBUG 0
46
# endif
47
# else /* ! defined YYDEBUG */
48
# define PARI_DEBUG 0
49
# endif /* ! defined YYDEBUG */
50
#endif /* ! defined PARI_DEBUG */
51
#if PARI_DEBUG
52
extern int pari_debug;
53
#endif
54
55
/* Token type. */
56
#ifndef PARI_TOKENTYPE
57
# define PARI_TOKENTYPE
58
enum pari_tokentype
59
{
60
KPARROW = 258,
61
KARROW = 259,
62
KDOTDOT = 260,
63
KPE = 261,
64
KSE = 262,
65
KME = 263,
66
KDE = 264,
67
KDRE = 265,
68
KEUCE = 266,
69
KMODE = 267,
70
KAND = 268,
71
KOR = 269,
72
KID = 270,
73
KEQ = 271,
74
KNE = 272,
75
KGE = 273,
76
KLE = 274,
77
KSRE = 275,
78
KSLE = 276,
79
KSR = 277,
80
KSL = 278,
81
KDR = 279,
82
KPP = 280,
83
KSS = 281,
84
KINTEGER = 282,
85
KREAL = 283,
86
KENTRY = 284,
87
KSTRING = 285,
88
SEQ = 286,
89
DEFFUNC = 287,
90
INT = 288,
91
LVAL = 289,
92
SIGN = 290,
93
DERIV = 291
94
};
95
#endif
96
97
/* Value type. */
98
99
/* Location type. */
100
#if ! defined PARI_LTYPE && ! defined PARI_LTYPE_IS_DECLARED
101
typedef struct PARI_LTYPE PARI_LTYPE;
102
struct PARI_LTYPE
103
{
104
int first_line;
105
int first_column;
106
int last_line;
107
int last_column;
108
};
109
# define PARI_LTYPE_IS_DECLARED 1
110
# define PARI_LTYPE_IS_TRIVIAL 1
111
#endif
112
113
114
115
int pari_parse (char **lex);
116
117
#endif /* !YY_PARI_SRC_LANGUAGE_PARSE_H_INCLUDED */
118
119