#chess #pgn #parser

rpgn

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

10 releases

0.3.4 Nov 27, 2024
0.3.3 Oct 6, 2024
0.3.2 Sep 27, 2024
0.3.1 Aug 11, 2024
0.1.0 May 12, 2024

#787 in Parser implementations

Download history 17/week @ 2024-08-16 23/week @ 2024-09-13 3/week @ 2024-09-20 126/week @ 2024-09-27 143/week @ 2024-10-04 22/week @ 2024-10-11 1/week @ 2024-10-18 117/week @ 2024-11-22 21/week @ 2024-11-29

138 downloads per month

GPL-3.0 license

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