Commit 3bb3e30e
3bb3e30ec0faMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified
Description
Merge pull request #618 from rubys/readme-rbs-mention
docs(readme): mention RBS seed input
Details
- Commit
- 3bb3e30ec0fa
- Parent
- d5e5028dd645
- Merge parent
- 9d1a6c9fb32b
README.mdmodifiedView file
@@ -81,8 +81,20 @@
8181
./spinel app.rb -o myapp # compiles to ./myapp8282
./spinel app.rb -c # generates app.c only8383
./spinel app.rb -S # prints C to stdout84+
./spinel app.rb --rbs sig # seed inference from .rbs files under sig/8485
```8586
87+
### RBS type signatures88+
89+
Spinel can read RBS files to seed the analyzer. When invoked with90+
`--rbs DIR`, the `spinel` wrapper runs `spinel_rbs_extract` over a91+
directory of `*.rbs` files (the same layout `rbs` and Steep use) and92+
passes the resulting seed file to `spinel_analyze` as a positional93+
argument. Seeds are advisory — inference still runs on top and94+
widens on observed contradiction, so a wrong or unrepresentable seed95+
is at worst a no-op. See [docs/RBS-EXTRACT.md](docs/RBS-EXTRACT.md)96+
for the supported subset.97+
8698
## Self-Hosting8799
88100
Spinel compiles its own backend. Both `spinel_analyze.rb` and