#grammar-parser #proc-macro #parser #grammar #loess-rust-opaque

loess-rust-opaque

Loess-compatible opaque wrappers for Syn-parsed tokens (as needed)

1 unstable release

Uses new Rust 2024

new 0.1.0+0.2 May 2, 2025

#1184 in Procedural macros

MIT/Apache

9KB
104 lines

Additional grammar tokens representing the stable Rust programming language, closely following The Rust Reference.

Corrections in that regard are not automatically considered breaking changes, unless they became necessary due to a change in Rust and reduce what is considered valid.

Breaking changes to the API are considered breaking as normal.

Note that unstable grammar is accidentally accepted in some cases.
Ceasing to accept unstable grammar is not by itself considered a breaking change for Loess.


Loess-Rust-Opaque

loess-rust-opaque is a companion crate to loess-rust that contains additional opaque grammar types not yet implemented natively for Loess. In practice, here that usually means Syn-wrappers.

Note that this crate will accidentally accept unstable grammar. Narrowing that towards stable Rust grammar only is not considered a breaking change.

When a part of the grammar becomes available through loess-rust, the version available through loess-rust-opaque is marked deprecated. Where compatible, which should usually be the case, the latter may also be switched over to that implementation as a non-breaking change.

How to read the version number:

After the "+", the most-major version of the (most directly) compatible Loess releases is listed.

Dependencies

~340–780KB
~18K SLoC