3 releases (breaking)
| 0.4.0 | Jun 7, 2025 |
|---|---|
| 0.3.0 | Mar 8, 2025 |
| 0.1.0 | Feb 16, 2025 |
#117 in Parser tooling
200 downloads per month
32KB
602 lines
Grammarsmith provides common helpers for writing lexers and parsers.
Examples
use grammarsmith::*;
Crate Features
serde: Enable Serde serialization and deserialization forBytePosandSpan.
Grammarsmith
Tools to build your own lexer and parsers by hand.
Motivation
Creating lexers and parsers by hand turns out to not be that difficult, however I have found that there is some code I keep copying around. This crate is a collection of those utilities so that I don't have to keep rewriting them.
Installation
[dependencies]
grammarsmith = "0.1.0"
or if you want to use the serde features:
[dependencies]
grammarsmith = { version = "0.1.0", features = ["serde"] }
Dependencies
~170KB