181 releases

new 0.0.215 May 13, 2024
0.0.213 Apr 29, 2024
0.0.207 Mar 25, 2024
0.0.190 Dec 18, 2023
0.0.26 Nov 30, 2020

#278 in Parser implementations

Download history 5313/week @ 2024-01-22 4277/week @ 2024-01-29 3680/week @ 2024-02-05 4135/week @ 2024-02-12 4241/week @ 2024-02-19 7675/week @ 2024-02-26 4083/week @ 2024-03-04 5187/week @ 2024-03-11 5381/week @ 2024-03-18 4343/week @ 2024-03-25 5275/week @ 2024-04-01 5705/week @ 2024-04-08 4968/week @ 2024-04-15 5325/week @ 2024-04-22 4247/week @ 2024-04-29 2858/week @ 2024-05-06

17,683 downloads per month
Used in 55 crates (6 directly)

MIT/Apache

260KB
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

~1MB
~13K SLoC