#chess #pgn #parser

rpgn

A crate for parsing PGNs (Portable [Chess] Game Notation)

9 releases

new 0.3.3 Oct 6, 2024
0.3.2 Sep 27, 2024
0.3.1 Aug 11, 2024
0.2.4 May 23, 2024
0.1.0 May 12, 2024

#869 in Parser implementations

Download history 2/week @ 2024-07-04 17/week @ 2024-07-25 3/week @ 2024-08-01 202/week @ 2024-08-08 22/week @ 2024-08-15 22/week @ 2024-09-12 4/week @ 2024-09-19 111/week @ 2024-09-26 141/week @ 2024-10-03

278 downloads per month

GPL-3.0 license

73KB
1.5K SLoC

tests coverage docs.rs crates.io license

RPGN

Rust Portable Game Notation.

A crate for parsing a PGN, built on shakmaty and pgn-reader.

pgn-reader only allows you to read individual, untyped parts of the PGN, but doesn't actually parse it into something useful. This crate parses a PGN into the Pgn struct.

You may also be interested in using the Variation struct if you need to process chess variations. It's included to process PGN movelists, but can be used standalone.

Dependencies

~1.5MB
~21K SLoC