168 releases

new 0.0.202 Feb 19, 2024
0.0.199 Jan 29, 2024
0.0.190 Dec 18, 2023
0.0.187 Nov 27, 2023
0.0.26 Nov 30, 2020

#484 in Parser implementations

Download history 7599/week @ 2023-11-05 6044/week @ 2023-11-12 6162/week @ 2023-11-19 6684/week @ 2023-11-26 6236/week @ 2023-12-03 4487/week @ 2023-12-10 6514/week @ 2023-12-17 2543/week @ 2023-12-24 4894/week @ 2023-12-31 5605/week @ 2024-01-07 6691/week @ 2024-01-14 6237/week @ 2024-01-21 5059/week @ 2024-01-28 4289/week @ 2024-02-04 5117/week @ 2024-02-11 7684/week @ 2024-02-18

22,463 downloads per month
Used in 55 crates (5 directly)

MIT/Apache

255KB
7.5K SLoC

The Rust parser.

NOTE: The crate is undergoing refactors, don't believe everything the docs say :-)

The parser doesn't know about concrete representation of tokens and syntax trees. Abstract TokenSource and TreeSink traits are used instead. As a consequence, this crate does not contain a lexer.

The Parser struct from the parser module is a cursor into the sequence of tokens. Parsing routines use Parser to inspect current state and advance the parsing.

The actual parsing happens in the grammar module.

Tests for this crate live in the syntax crate.

Dependencies

~425KB