mirror of
https://github.com/Z3Prover/z3
synced 2025-08-20 02:00:22 +00:00
Add WebAssembly/TypeScript bindings (#5762)
* Add TypeScript bindings * mark Z3_eval_smtlib2_string as async
This commit is contained in:
parent
9ac57fc510
commit
2b934b601d
18 changed files with 1722 additions and 33 deletions
11
src/api/js/scripts/list-exports.js
Normal file
11
src/api/js/scripts/list-exports.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
// this is called by build.sh to generate the names of the bindings to export
|
||||
|
||||
let { functions } = require('./parse-api.js');
|
||||
let asyncFns = require('./async-fns.js');
|
||||
|
||||
let extras = asyncFns.map(f => '_async_' + f);
|
||||
let fns = functions.filter(f => !asyncFns.includes(f.name));
|
||||
|
||||
console.log(JSON.stringify([...extras, ...functions.map(f => '_' + f.name)]));
|
Loading…
Add table
Add a link
Reference in a new issue