v1.4.0 release: live-coding scratch editor, interpreted Graph DSL, ClosureSynthesizer + SampleLoop
This commit is contained in:
@@ -418,9 +418,10 @@ docs/protocols/node-tree.md 17 997ca49f51729c08 engine
|
||||
docs/protocols/node-tree.md 18 aefeb0ccc074107f engine
|
||||
docs/protocols/node-tree.md 8 c0d3579c162c202a engine
|
||||
docs/protocols/synthesizer.md 1 38a0a449b97f87e9 engine
|
||||
docs/protocols/synthesizer.md 12 7e299b8752fd0259 engine
|
||||
docs/protocols/synthesizer.md 5 f227e2d6af6a6d1f engine
|
||||
docs/protocols/synthesizer.md 6 73d2d9960aae5bde none
|
||||
docs/protocols/synthesizer.md 9 7e299b8752fd0259 engine
|
||||
docs/protocols/synthesizer.md 7 78c3888e99eea482 none
|
||||
docs/protocols/writing-generators.md 0 645a650c346742bc none
|
||||
docs/protocols/writing-generators.md 14 1fbc9b4f31c8402f none
|
||||
docs/protocols/writing-generators.md 30 bed091517e71e904 member
|
||||
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env bash
|
||||
# generate-dsl-registry.sh
|
||||
#
|
||||
# Regenerates the interpreted graph-DSL's builtin registry from the generator
|
||||
# sources. The output is committed, so run this after adding or changing a
|
||||
# generator's init signature and commit the diff.
|
||||
#
|
||||
# bash scripts/generate-dsl-registry.sh # regenerate + verify it compiles
|
||||
# bash scripts/generate-dsl-registry.sh --report # classification summary only
|
||||
# bash scripts/generate-dsl-registry.sh --check # fail if committed output is stale (CI)
|
||||
#
|
||||
# The generator lives in its own SwiftPM package (Tools/DSLRegistryGen) so its
|
||||
# swift-syntax dependency never enters the main package's build graph.
|
||||
#
|
||||
# Constants are declared module-wide (Math/, per-family constant files), not
|
||||
# just under Generators/, so the constant scan covers the whole module.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
GENERATORS="Sources/Lyrebird/Generators"
|
||||
CONSTANTS="Sources/Lyrebird"
|
||||
OUTPUT="Sources/LyrebirdGraphDSL/Generated/GeneratedDSLRegistry.swift"
|
||||
|
||||
run() {
|
||||
swift run --package-path Tools/DSLRegistryGen DSLRegistryGen \
|
||||
--generators "$GENERATORS" --constants "$CONSTANTS" "$@"
|
||||
}
|
||||
|
||||
case "${1:-}" in
|
||||
--report)
|
||||
run --report
|
||||
;;
|
||||
--check)
|
||||
run --output "$OUTPUT" --check
|
||||
;;
|
||||
*)
|
||||
mkdir -p "$(dirname "$OUTPUT")"
|
||||
run --output "$OUTPUT"
|
||||
# Verify the emitted registry actually compiles before trusting it.
|
||||
echo "verifying generated registry compiles…"
|
||||
swift build --target LyrebirdGraphDSL
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user