sus-proc-macro

Crates.iosus-proc-macro
lib.rssus-proc-macro
version0.1.0
sourcesrc
created_at2024-07-27 15:43:57.417617
updated_at2024-11-06 12:08:31.996984
descriptionProc-macros for use in the sus-compiler
homepagehttps://github.com/pc2/sus-compiler
repositoryhttps://github.com/pc2/sus-compiler
max_upload_size
id1317372
size4,650
Lennart Van Hirtum (VonTum)

documentation

README

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

Commit count: 450

cargo fmt