Decision Workspace
hannibal-lexer vs qana-grammar vs regex-dfa-gen
Side-by-side comparison of Rust crates
42
hannibal-lexer
experimentalv0.2.3
DFA based Lexer written in Rust.
47
qana-grammar
experimentalv0.0.2
Grammar as a plain value: pattern-to-DFA compilation, canonical LR(1) tables with conflict counterexamples, and the envelope lints that make incremental parsing provable rather than hoped for
37
regex-dfa-gen
growingv0.1.1
A proc_macro lexer generator. using `enum`-like syntax.
Core Metrics
| hannibal-lexer | qana-grammar | regex-dfa-gen | |
|---|---|---|---|
| Health Score | 42 | 47 | 37 |
| Total Downloads | 119 | 177 | 3.9K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 14 | 2 |
| Releases | 4 | 2 | 2 |
| Last Updated | 160d ago | 75d ago | 567d ago |
| Age | 5m | 2m | 6y 2m |
Health Breakdown
hannibal-lexer
Maintenance
17
Quality
8
Community
5
Popularity
2
Documentation
10
qana-grammar
Maintenance
10
Quality
15
Community
9
Popularity
3
Documentation
10
regex-dfa-gen
Maintenance
3
Quality
14
Community
4
Popularity
4
Documentation
12
Technical Details
| hannibal-lexer | qana-grammar | regex-dfa-gen | |
|---|---|---|---|
| Version | 0.2.3 | 0.0.2 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 2 | 0 | 5 |
| Crate Size | 8KB | 51KB | 11KB |
| Features | 0 | 0 | 0 |
| Yanked % | 75.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •qana-grammar leads with a health score of 47/100, but none of the options score above 80.
- •regex-dfa-gen has the most downloads (3.9K), suggesting wider adoption.
- •⚠ regex-dfa-gen has not been updated in over a year.