5 releases

new 0.1.4 Jan 11, 2025
0.1.3 Nov 10, 2024
0.1.2 Nov 10, 2024
0.1.1 Oct 28, 2024
0.1.0 Oct 27, 2024

#215 in #lexer

Download history 277/week @ 2024-10-27 14/week @ 2024-11-03 228/week @ 2024-11-10 18/week @ 2024-11-17 1/week @ 2024-11-24 9/week @ 2024-12-08 122/week @ 2025-01-05

125 downloads per month
Used in lachs

MIT license

12KB
274 lines

Lachs Derive

IMPORTANT: You are not supposed to use this crate directly. The only way we guarantee a working usage is to directly use the lachs crate.

This crate provides the implementation of a lexer generator in the form of the #[token] proc macro. Applying this macro to an enum will consume this enum and generate a new enum where each variant has the fields corresponding to the type of token this field represents.

Dependencies

~225–670KB
~16K SLoC