Testing latest pari + WASM + node.js... and it works?! Wow.
License: GPL3
ubuntu2004
/* Copyright (C) 2000-2004 The PARI group.12This file is part of the PARI/GP package.34PARI/GP is free software; you can redistribute it and/or modify it under the5terms of the GNU General Public License as published by the Free Software6Foundation; either version 2 of the License, or (at your option) any later7version. It is distributed in the hope that it will be useful, but WITHOUT8ANY WARRANTY WHATSOEVER.910Check the License for details. You should have received a copy of it, along11with the package; see the file 'COPYING'. If not, write to the Free Software12Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */1314BEGINEXTERN1516typedef enum {Fseq,17Fmatrix,Frange,18Fassign,19Fmatcoeff,20Fmatrixelts,Fmatrixlines,21Fmat,Fvec,Fnoarg,Fnorange,22Flistarg,23Frefarg, Findarg, Fvararg,24Fconst,Fsmall,25Ftag,26Fentry,Fcall,Ffunction,Flambda27} Ffunc;2829typedef struct node_s30{31Ffunc f; /*node function */32long x; /*node left child */33long y; /*node right child*/34const char *str; /*text start */35size_t len; /*text length */36long flags; /*flags from the copy optimizer*/37} node;3839typedef enum {CSTstr, CSTquote, CSTint, CSTreal, CSTmember, CSTentry} CSTtype;4041typedef 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;4243extern THREAD node *pari_tree;4445ENDEXTERN464748