3 releases (breaking)

0.2.0 Mar 6, 2025
0.1.0 Nov 6, 2024
0.0.1 Jul 27, 2024

#8 in #sus

Download history 14/week @ 2025-03-10 10/week @ 2025-03-17 5/week @ 2025-03-24 2/week @ 2025-05-12

197 downloads per month
Used in sus_compiler

GPL-3.0-or-later

260KB
9K SLoC

C 8K SLoC JavaScript 273 SLoC // 0.1% comments Rust 131 SLoC // 0.2% comments

Proc-Macros for use in the SUS compiler.

Right now this just contains three proc-macros. kind!, kw!, and field!. They are there to make compile-time queries to the tree-sitter-sus grammar. It's compile-time, requires no runtime queries, and they can be used in more contexts, like match arms.

The grammar is generated using tree-sitter. Used as the parsing front-end of the sus-compiler.

The SUS compiler repository is here.

This package provides bindings for C, C++, and Rust. (And tree-sitter implemented a few more but who's counting. )

In the future I'll probably add macros for derive macros like migrating or collecting Spans

Dependencies

~4–5.5MB
~115K SLoC