Crates.io | pest_typed_derive |
lib.rs | pest_typed_derive |
version | 0.15.0 |
source | src |
created_at | 2023-07-21 00:48:23.796702 |
updated_at | 2024-06-19 00:58:53.964631 |
description | pest-typed's derive macro. |
homepage | |
repository | https://github.com/theverydarkness/pest-typed |
max_upload_size | |
id | 921948 |
size | 8,364,628 |
Pest provides a elegant and convenient way to implement a parser. However, it's not convenient to consume its output as the syntax tree is not statically tagged.
This motivates me to develop a statically typed version of pest based on current version of pest.
See our documentation for some notes.
The main drawback of this crate is that it compiles much slower than pest.
So, if you are just to test your grammar, you can use pest in your parsing tests.
Maybe separate your codes into several crates, use a feature in the parser crate to control which one (pest or pest_typed) is used, and use pest when testing whether the parser can parse your test inputs.
Before working on this project, I've searched for crates with similar aims. They're great, too.
name | repository | documentation |
---|---|---|
pest-ast | https://github.com/pest-parser/pest_deconstruct | https://docs.rs/pest-ast/ |
pest_consume | https://github.com/Nadrieril/pest_consume | https://docs.rs/pest_consume/ |