1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! Data structures and utilities for parsing [SGF FF\[4\] files](https://www.red-bean.com/sgf/). //! //! For reading SGFs your starting point will be the [parse](fn.parse.html) function which will //! return a `Vector` of `SgfNode` structs. //! //! For writing SGFs you'll want to build a collection of `SgfNode` structs, and then use //! [serialize](fn.serialize.html). See `SgfNodeBuilder` and `SgfNode::to_builder`. mod errors; mod lexer; mod parser; mod props; mod serialize; mod sgf_node; pub use errors::SgfParseError; pub use parser::parse; pub use props::{Color, Double, Move, Point, PropertyType, SgfProp, SimpleText, Text}; pub use serialize::serialize; pub use sgf_node::{SgfNode, SgfNodeBuilder};