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

compile  •Import "c.bqn"
useInd  "-i"≡⊑args•args  args˜useInd
Comp  (3+useInd)  ((<"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   (≠↑13/"  new Uint8Array("∾∾")"((@+10)" ,")˙) {𝕎𝕩}¨ 
•Out ("r""c""fmt""e"⊐⊏)
  {𝕩reflen•Import"pr.bqn"Long Frun len(1)Comp ref}
  {𝕩Long Fout Comp J •LNS "c.bqn"}
  {𝕩Long Fout Comp J •LNS "fmt.bqn"}
  {𝕩Long Fout Comp J "Modify←GetHighlights←⊢"∾∾ •LNS".bqn"¨ "../svg""e"}
  ¯1  · J LFoutComp¨
 args