github.com/gomantics/chunkx
Package chunkx provides AST-based code chunking using the CAST algorithm. ChunkX implements the CAST (Chunking via Abstract Syntax Trees) method for semantically-aware code chunking. Unlike line-based chunking, CAST respects code structure by parsing source into an AST and creating chunks that align with syntactic boundaries (functions, classes, methods). Basic usage: Supports 30+ languages including Bash, C, C++, C#, CSS, Cue, Dockerfile, Elixir, Elm, Go, Groovy, HCL, HTML, Java, JavaScript, Kotlin, Lua, Markdown, OCaml, PHP, Protobuf, Python, Ruby, Rust, Scala, SQL, Svelte, Swift, TOML, TypeScript, and YAML. For unsupported file types, the chunker automatically falls back to a generic line-based chunking algorithm.
proxy.golang.org
v0.0.3
6 months ago
3
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/gomantics/chunkx
spec |
| License | MIT |
| Namespace | github.com/gomantics |
| First Release | 6 months ago |
| Last Synced | about 1 month ago |