Crates.io | sus-proc-macro |
lib.rs | sus-proc-macro |
version | 0.2.0 |
source | src |
created_at | 2024-07-27 15:43:57.417617+00 |
updated_at | 2025-03-06 17:29:57.607022+00 |
description | Proc-macros for use in the sus-compiler |
homepage | https://github.com/pc2/sus-compiler |
repository | https://github.com/pc2/sus-compiler |
max_upload_size | |
id | 1317372 |
size | 6,518 |
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