diff options
| -rwxr-xr-x | dc.bqn | 2 | ||||
| -rwxr-xr-x | dcshim.bqn | 3 | ||||
| -rwxr-xr-x | test/dt.js | 5 |
3 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -⍝ Run with spec/dzref +#! ./spec/dzref nl‿tab←•UCS 10‿9 charSet←∾charGroups←⟨ diff --git a/dcshim.bqn b/dcshim.bqn new file mode 100755 index 00000000..1762c342 --- /dev/null +++ b/dcshim.bqn @@ -0,0 +1,3 @@ +#! /usr/bin/env dbqn + +((<•path∾"dc.bqn")∾•args) •EX •path∾"spec/dzref" @@ -9,9 +9,8 @@ const t=load('cases.bqn').split('\n').filter(x=>x).map(x=>x.split(' % ')) , expt=t.map(e=>+e[0]) var compiler = execFile( - __dirname+'/../spec/dzref', - [ __dirname+'/../dc.bqn', - '{•←Compile𝕩}¨⟨'+test+'⟩' ], + __dirname+'/../dcshim.bqn', + [ '{•←Compile𝕩}¨⟨'+test+'⟩' ], function (error, stdout, stderr) { const rslt=stdout.split('\n').filter(a=>a.length) .map(a=>runWasm(a.split("‿").map(n=>+n))) |
