Commit 2a9dfdf0

2a9dfdf06ddaMerged

Sam Ruby <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

docs(readme): mention RBS seed input

Document the new --rbs DIR flag and the advisory nature of the seeds, with a pointer to docs/RBS-EXTRACT.md for the supported subset.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
2a9dfdf06dda
Parent
822964c207e0

README.mdmodifiedView file

@@ -81,8 +81,19 @@
8181 ./spinel app.rb -o myapp # compiles to ./myapp
8282 ./spinel app.rb -c # generates app.c only
8383 ./spinel app.rb -S # prints C to stdout
84+./spinel app.rb --rbs sig # seed inference from .rbs files under sig/
8485 ```
8586
87+### RBS type signatures
88+
89+Spinel can read RBS files to seed the analyzer. `spinel_rbs_extract`
90+scans a directory of `*.rbs` files (the same layout `rbs` and Steep
91+use) and emits seed records that `spinel_analyze` consumes via
92+`--rbs DIR`. Seeds are advisory — inference still runs on top and
93+widens on observed contradiction, so a wrong or unrepresentable seed
94+is at worst a no-op. See [docs/RBS-EXTRACT.md](docs/RBS-EXTRACT.md)
95+for the supported subset.
96+
8697 ## Self-Hosting
8798
8899 Spinel compiles its own backend. Both `spinel_analyze.rb` and