127 releases

0.0.149 Jan 16, 2023
0.0.145 Dec 26, 2022
0.0.141 Nov 28, 2022
0.0.122 Jul 25, 2022
0.0.26 Nov 30, 2020
Download history 8100/week @ 2022-12-02 5522/week @ 2022-12-09 5354/week @ 2022-12-16 5303/week @ 2022-12-23 4852/week @ 2022-12-30 4898/week @ 2023-01-06 6273/week @ 2023-01-13 7261/week @ 2023-01-20 6463/week @ 2023-01-27 6029/week @ 2023-02-03 7258/week @ 2023-02-10 5676/week @ 2023-02-17 8812/week @ 2023-02-24 5355/week @ 2023-03-03 6803/week @ 2023-03-10 4005/week @ 2023-03-17

25,583 downloads per month
Used in 44 crates (4 directly)

MIT/Apache

220KB
6.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