squiggle/packages/squiggle-lang/scripts
2022-09-19 22:07:25 +04:00
..
bench-map-reduce.js .mjs for all scripts 2022-09-18 19:18:10 +04:00
bench-map-reduce.mjs var name cleanups 2022-09-18 20:13:54 +04:00
bench-map.js .mjs for all scripts 2022-09-18 19:18:10 +04:00
bench-map.mjs .mjs for all scripts 2022-09-18 19:18:10 +04:00
README.md Merge branch 'develop' into overhaul 2022-09-19 22:07:25 +04:00
run-file.mjs Merge branch 'develop' into overhaul 2022-09-19 22:07:25 +04:00
run.js .mjs for all scripts 2022-09-18 19:18:10 +04:00
run.mjs var name cleanups 2022-09-18 20:13:54 +04:00

Various scripts used for development, benchmarking and testing.

<<<<<<< HEAD None of these are bundled in NPM package yet.

None of these are bundled in the NPM package yet.

run.mjs

scripts/run.mjs allows quick testing of Squiggle programs:

$ ./scripts/run.mjs '2+2'
Running 2+2
Ok 4
@{__result__: 4}

run-file.mjs

scripts/run-file.mjs can be used to run and benchmark squiggle scripts stored in files:

$ ./scripts/run-file.mjs ./path/to/file.squiggle
Time: 3.18 Ok

To see the result and bindings, add the -o or --output flag.

develop