#parser #go #sgf #baduk

sgf-parse

A parser for the SGF file format for Go games

23 releases (stable)

4.2.1 Aug 25, 2023
4.2.0 Jul 22, 2023
4.0.0 Aug 1, 2021
3.1.3 Jul 31, 2021
0.3.2 Aug 14, 2020

#508 in Parser implementations

Download history 25/week @ 2024-02-19 251/week @ 2024-02-26 8/week @ 2024-03-04

284 downloads per month
Used in 2 crates

MIT license

97KB
2K SLoC

sgf-parse - A library for parsing SGF files

Continuous integration

A library for parsing SGF FF[4] files in Rust.

sgf-parse provides a reliable but simple structured, standard-compliant interface for reading and writing .sgf files. For all standard SGF data types, properties are validated and parsed into appropriate native Rust types. Non-standard properties are parsed and preserved.

Documentation

Installation

Find sgf-parse on crates.io

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

I would be particularly interested in any PRs to add support for non-Go games. Right now sgf-parse in principle can support any games supported by SGF, but I've only got specific implementations for Go, and a catchall with no special behavior where moves, stones, and points are just strings left to the library user to interpret.

No runtime deps