BQN genRuntime
This commit is contained in:
parent
075773a28c
commit
8ec316ec94
18
genRuntime
18
genRuntime
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bqn
|
||||||
if [[ $# -ne 1 ]]; then
|
args←•args
|
||||||
echo "Usage: ./genRuntime path/to/mlochbaum/BQN"
|
"Usage: ./getRuntime.bqn path/to/mlochbaum/BQN"!1≤≠args
|
||||||
exit
|
path←⊑•args
|
||||||
fi
|
CC ← {𝕨 •FChars ⟨1,path,𝕩⟩ •Import "cc.bqn"}
|
||||||
./cc.bqn $1 r0 > src/runtime0
|
"src/runtime0"CC"r0"
|
||||||
./cc.bqn $1 r1 > src/runtime1
|
"src/runtime1"CC"r1"
|
||||||
./cc.bqn $1 c > src/compiler
|
"src/compiler"CC"c"
|
||||||
./cc.bqn $1 f > src/formatter
|
"src/formatter"CC"f"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user