A language-neutral grammar for addressing code elements by meaning, not location.
An spath has up to four parts:
package[selector].Symbol.Member/property
| Part | Role | Example |
|---|---|---|
| Package path | Where it lives | encoding/json, internal/service |
| Selector | Narrows or disambiguates | [file.go], [int,string] |
| Symbol path | What it is | .Handler, .Type.Method |
| Property | A named aspect | /imports, /annotations |
This is the base grammar. Language-specific dialects constrain and define semantics within it.
- spath-spec-go — Go dialect
spath.ebnf— grammar specificationCHANGELOG.md— version history
0.1.0 (draft)
- splan-spec — Semantic plan grammar for batched code operations
CC BY 4.0 — Sumato AI