Polynomial Identity Language (pil) compiler
$ npm install
$ npm run build
Generate json file from pil file:
$ node src/pil.js <input.pil> -o <output.pil.json>
Generate C++ code from pil file (.hpp files will be generated in the ./pols_generated folder):
$ node src/pil.js <input.pil> -c -n namespace
Basic usage:
const pil = await compile(Fr, "pil/main.pil");
Advanced usage:
const pilConfig =
{ defines: {N: 2 ** 21},
namespaces: ['Global', 'Main', 'Rom', 'Byte4', 'Arith'],
verbose: true,
color: true,
disableUnusedError: true});
const pil = await compile(Fr, "pil/main.pil", null, pilConfig);
In command line compilation:
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
JavaScript
90.3%
Yacc
9.7%
Polynomial Identity Language (pil) compiler
$ npm install
$ npm run build
Generate json file from pil file:
$ node src/pil.js <input.pil> -o <output.pil.json>
Generate C++ code from pil file (.hpp files will be generated in the ./pols_generated folder):
$ node src/pil.js <input.pil> -c -n namespace
Basic usage:
const pil = await compile(Fr, "pil/main.pil");
Advanced usage:
const pilConfig =
{ defines: {N: 2 ** 21},
namespaces: ['Global', 'Main', 'Rom', 'Byte4', 'Arith'],
verbose: true,
color: true,
disableUnusedError: true});
const pil = await compile(Fr, "pil/main.pil", null, pilConfig);
In command line compilation:
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
JavaScript
90.3%
Yacc
9.7%