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
/* Copyright (C) 2000-2004 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
BEGINEXTERN
16
17
typedef enum {Fseq,
18
Fmatrix,Frange,
19
Fassign,
20
Fmatcoeff,
21
Fmatrixelts,Fmatrixlines,
22
Fmat,Fvec,Fnoarg,Fnorange,
23
Flistarg,
24
Frefarg, Findarg, Fvararg,
25
Fconst,Fsmall,
26
Ftag,
27
Fentry,Fcall,Ffunction,Flambda
28
} Ffunc;
29
30
typedef struct node_s
31
{
32
Ffunc f; /*node function */
33
long x; /*node left child */
34
long y; /*node right child*/
35
const char *str; /*text start */
36
size_t len; /*text length */
37
long flags; /*flags from the copy optimizer*/
38
} node;
39
40
typedef enum {CSTstr, CSTquote, CSTint, CSTreal, CSTmember, CSTentry} CSTtype;
41
42
typedef enum {OPor, OPand, OPid, OPeq, OPne, OPge, OPg, OPle, OPl, OPs, OPp, OPsl, OPsr, OPmod, OPdr, OPeuc, OPd, OPm, OPpow, OPcat, OPss, OPpp, OPse ,OPpe ,OPsle ,OPsre ,OPmode ,OPdre ,OPeuce ,OPde ,OPme, OPpl, OPn, OPnb, OPfact, OPderivn, OPtrans, OPrange, OPcompr, OPcomprc, OPhist, OPhisttime, OPlength, OPnboperator} OPerator;
43
44
extern THREAD node *pari_tree;
45
46
ENDEXTERN
47
48