Crates.io | lachs_derive |
lib.rs | lachs_derive |
version | 0.1.3 |
source | src |
created_at | 2024-10-27 23:42:35.288051 |
updated_at | 2024-11-10 21:55:56.199885 |
description | Derive macro for creating a lexer |
homepage | |
repository | https://github.com/H1ghBre4k3r/lachs |
max_upload_size | |
id | 1425110 |
size | 12,412 |
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.