aboutsummaryrefslogtreecommitdiff
path: root/src/cjs.bqn
blob: b481cdc0ed3b337a90412e7dcc71eef4228f1905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/env dbqn

compile  •Import •path∾"c.bqn"
Comp  ((<"runtime[""]"˙)¨62)Compile
FP  =,"Infinity"
Esc  ("\t","\n","\r","\'","\"""∾<)˜("'"""˜@+91013)⊐⊢
Str  "str("""(∾Esc¨)""")"˜
Char  "'"(∾∾⊣)Esc
Fconst  (⊑⍋)()0"-"∾FP|,FP⟩,Char⟩⋄Str
L  "[""]"˜1·","¨
J  ∾∾(@+10)¨
Fout  ,Fconst,L {L𝕎¨𝕩}¨ 
Frun  ("provide.concat("∾∾")")(1) Fout
Long   (12/"  new Uint8Array("∾∾")"((@+10)" ,")) {𝕎𝕩}¨ 
  ("r""c""fmt"⊐⊏)
  {𝕩reflen•Import•path∾"pr.bqn"Long Frun len(1)Comp ref}
  {𝕩Long Fout Comp J •LNS •path∾"c.bqn"}
  {𝕩Long Fout Comp J •LNS •path∾"fmt.bqn"}
  ¯1  · J LFoutComp¨
 •args