Crates.io | sgf-parse |
lib.rs | sgf-parse |
version | 4.2.2 |
source | src |
created_at | 2020-08-04 20:33:18.747289 |
updated_at | 2024-10-03 12:52:10.743368 |
description | A parser for the SGF file format for Go games |
homepage | |
repository | https://github.com/julianandrews/sgf-parse/ |
max_upload_size | |
id | 273015 |
size | 104,518 |
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.
Find sgf-parse
on crates.io
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.