Crate sgf_parse[][src]

Expand description

Data structures and utilities for parsing SGF FF[4] files.

For reading SGFs your starting point will likely be go::parse. For parsing non-go games check out the parse function.

For writing SGFs check out SgfNode::serialize for writing single game trees or serialize for writing whole collections.

Modules

Types specific to the game of Go.

Generic types for SGFs without a known game.

Structs

Options for parsing SGF files.

A node in an SGF Game Tree.

An SGF SimpleText value.

An SGF Text value.

Enums

An SGF Color value.

An SGF Double value.

An SGF GameTree value.

The game recorded in a GameTree.

Err type for SgfNode::validate.

Error type for failures to tokenize text.

An SGF property type.

Error type for failures parsing sgf from text.

Traits

A type that can be used for properties in an SgfNode.

Functions

Returns the GameTree values parsed from the provided text using default parsing options.

Returns the GameTree values parsed from the provided text.

Returns the serialized SGF text from a collection of GameTree objects.