Skip to content

sumato-ai/spath-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spath

A language-neutral grammar for addressing code elements by meaning, not location.

Overview

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

Dialects

This is the base grammar. Language-specific dialects constrain and define semantics within it.

Files

Version

0.1.0 (draft)

Related

  • splan-spec — Semantic plan grammar for batched code operations

License

CC BY 4.0 — Sumato AI

About

Semantic Path (spath) — a language-neutral grammar for addressing code elements by meaning, not location

Topics

Resources

License

Stars

Watchers

Forks

Packages