Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

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

28485 views
License: GPL3
ubuntu2004
1
/* Copyright (C) 2000 The PARI group.
2
3
This file is part of the PARI/GP package.
4
5
PARI/GP is free software; you can redistribute it and/or modify it under the
6
terms of the GNU General Public License as published by the Free Software
7
Foundation; either version 2 of the License, or (at your option) any later
8
version. It is distributed in the hope that it will be useful, but WITHOUT
9
ANY WARRANTY WHATSOEVER.
10
11
Check the License for details. You should have received a copy of it, along
12
with the package; see the file 'COPYING'. If not, write to the Free Software
13
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
14
15
/*************************************************************************/
16
/* */
17
/* Declarations specific to the analyzer */
18
/* */
19
/*************************************************************************/
20
BEGINEXTERN
21
/* functions */
22
void changevalue(entree *ep, GEN val);
23
void freeep(entree *ep);
24
void pari_fill_hashtable(entree **table, entree *ep);
25
26
void compile_err(const char *msg, const char *str);
27
void compile_varerr(const char *str);
28
29
#ifdef STACK_CHECK
30
extern THREAD void *PARI_stack_limit;
31
#endif
32
33
extern entree **varentries;
34
35
struct node_loc
36
{
37
const char *start,*end;
38
};
39
40
union token_value { long val; };
41
42
int pari_lex(union token_value *yylval, struct node_loc *yylloc, char **lex);
43
int pari_parse(char **lex);
44
entree* fetch_entry_raw(const char *s, long len);
45
entree* fetch_entry(const char *s);
46
void optimizenode(long n);
47
void push_frame(GEN C, long lpc, long flag);
48
GEN gp_closure(long n);
49
long eval_mnemonic(GEN str, const char *tmplate);
50
51
ENDEXTERN
52
53