17 lines
670 B
Plaintext
Executable File
17 lines
670 B
Plaintext
Executable File
#!/usr/bin/env bqn
|
|
args←•args
|
|
"Usage: ./getRuntime.bqn path/to/mlochbaum/BQN output/path"!2≤≠args
|
|
bqnSrc‿outputPath ← •wdpath⊸•file.At¨ 2↑•args
|
|
|
|
rtSrc ← ⊑(<"src")∊2↓•args
|
|
|
|
CC ← { dst‿type‿name:
|
|
(outputPath•file.At dst) •FChars (⟨1, bqnSrc⟩∾(rtSrc/⟨"-i"⟩)∾⟨"-n", name, type⟩) •Import "cc.bqn"
|
|
}
|
|
CC ⟨"gen/compiles", "cc", "(compiler)"⟩
|
|
CC ⟨"gen/runtime0", "r0", "(self-hosted runtime0)"⟩
|
|
CC ⟨"gen/runtime1", "r1", "(self-hosted runtime1)"⟩
|
|
CC ⟨"gen/runtime1x", "r1x", "(self-hosted runtime1x)"⟩
|
|
CC ⟨"gen/formatter", "f", "(formatter)"⟩
|
|
CC ⟨"gen/explain", "eu", "(explain)"⟩
|