Latest / Developer tools

tree-sitter-kit

github.com · Package · Quiet

Swift package for writing tree-sitter grammars in Swift with a macro

Visit github.com ↗Share

Stars
27
Forks
0
Open issues
6
Last commit
Found
2 years ago

GitHub figures as of . They are context, not a ranking.

tree-sitter-kit is a Swift package that lets you define tree-sitter parsers in Swift as production rules. A member macro generates the grammar and embeds the parser in its expansion, and the project is a work in progress that its author welcomes feedback on.

Positioned as an alternative to tree-sitter.

Repository description on GitHub: “Tree-sitter integration for Swift.”

What it does

  • Write tree-sitter grammars as Swift production rules
  • Member macro generates the grammar and embeds the parser
  • Maps parse trees into Swift data structures

Good for

  • Define a parser for a small expression language in Swift
  • Turn parse results into Swift enums without hand-written glue

Suits: Swift developers writing parsers for languages or data formats.

Worth knowing: This is a work in progress, and the author is still collecting feedback

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw tree-sitter-kit on , when daspoon posted it to Show HN. GitHub listed no published releases for daspoon/tree-sitter-kit when checked , so the project may ship straight from its main branch. The repository was created .

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 52 points, 10 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 52 points, 10 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: daspoon/tree-sitter-kit
  2. Found: daspoon posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was tree-sitter-kit released?
No dated release record is available. Kip found it on Show HN on 20 Aug 2024.
Is tree-sitter-kit open source?
Its source is public on GitHub at daspoon/tree-sitter-kit under the MIT licence.
What does tree-sitter-kit run on?
Library.
Is tree-sitter-kit free?
It is open source, so the code is free to read and run; check the licence for terms.
Is tree-sitter-kit still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorydaspoon/tree-sitter-kit
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-41301777. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.