2 unstable releases

0.1.0 Nov 6, 2024
0.0.1 Jul 27, 2024

#6 in #sus

Download history 139/week @ 2024-07-27 3/week @ 2024-08-03 2/week @ 2024-08-31 11/week @ 2024-09-14 18/week @ 2024-09-21 24/week @ 2024-09-28 4/week @ 2024-10-05 110/week @ 2024-11-02 18/week @ 2024-11-09

128 downloads per month
Used in sus_compiler

GPL-3.0-or-later

5KB
58 lines

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–6MB
~123K SLoC