1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
//! Data structures and utilities for parsing [SGF FF\[4\] files](https://www.red-bean.com/sgf/). //! //! For reading SGFs your starting point will likely be [`go::parse`]. For parsing non-go games //! check out the [`parse`](`parse()`) function. //! //! For writing SGFs check out [`SgfNode::serialize`] for writing single game trees or //! [`serialize`](`serialize()`) for writing whole collections. #[macro_use] mod prop_macro; pub mod go; pub mod unknown_game; mod game_tree; mod lexer; mod parser; mod props; mod serialize; mod sgf_node; pub use game_tree::{GameTree, GameType}; pub use lexer::LexerError; pub use parser::{parse, SgfParseError}; pub use props::{Color, Double, PropertyType, SgfProp, SimpleText, Text}; pub use serialize::serialize; pub use sgf_node::{InvalidNodeError, SgfNode};