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 ./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. When invoked with
90+`--rbs DIR`, the `spinel` wrapper runs `spinel_rbs_extract` over a
91+directory of `*.rbs` files (the same layout `rbs` and Steep use) and
92+passes the resulting seed file to `spinel_analyze` as a positional
93+argument. Seeds are advisory — inference still runs on top and
94+widens on observed contradiction, so a wrong or unrepresentable seed
95+is at worst a no-op. See [docs/RBS-EXTRACT.md](docs/RBS-EXTRACT.md)
96+for the supported subset.
97+
8698 ## Self-Hosting
8799
88100 Spinel compiles its own backend. Both `spinel_analyze.rb` and