Versions in this module Expand all Collapse all v1 v1.0.0 Aug 10, 2026 v0 v0.1.0 Aug 9, 2026 Changes in this version + type Characteristics struct + type GameAlternative struct + GameSteps []core.GameStep + InitialGame core.Game + func (a GameAlternative) Clone() GameAlternative + func (a GameAlternative) CurrentGame() core.Game + type GenericNotationParser struct + func NewGenericNotationParser(variant ParserVariant) *GenericNotationParser + func (p *GenericNotationParser) MatchHalfMove(halfMove string, g core.Game) ([]core.Action, error) + func (p *GenericNotationParser) Parse(initialGame core.Game, s string) (*ParsedGame, error) + func (p *GenericNotationParser) ProcessToken(pg *ParsingGame, token *Token) error + type NotationParser struct + func NewNotationParserAlgebraic(initialCharacteristics Characteristics) *NotationParser + func NewNotationParserCoordinate(initialCharacteristics Characteristics) *NotationParser + func NewNotationParserDescriptive(initialCharacteristics Characteristics) *NotationParser + func NewNotationParserICCF(initialCharacteristics Characteristics) *NotationParser + func NewNotationParserSmith(initialCharacteristics Characteristics) *NotationParser + func (p *NotationParser) Parse(initialGame core.Game, s string) ([]core.GameStep, error) + type ParseError struct + LegalActions []core.Action + MoveNumber int + Msg string + Reason string + Token string + func (e *ParseError) Error() string + type ParsedGame struct + GameSteps []core.GameStep + Metadata map[string]string + type ParserVariant interface + ActionToStringVariants func(a core.Action, g core.Game) []string + Finalize func(pg *ParsingGame) error + Initialize func(initialGame core.Game, s string) (*ParsingGame, error) + PopHalfMove func(pg *ParsingGame) (*Token, bool, error) + type ParsingGame struct + Alternatives []GameAlternative + Metadata map[string]string + Pos int + Remaining string + func (pg *ParsingGame) Build() *ParsedGame + type Token struct + Comment string + Type TokenType + Value string + type TokenType int + const TokenTypeAnnotation + const TokenTypeComment + const TokenTypeHalfMove + const TokenTypeMoveNumber + const TokenTypeResult