parser

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GRLTBlackByCounting = 0
	GRLTWhiteByCounting = 1
	GRLTBlackByResign   = 3
	GRLTWhiteByResign   = 4
	GRLTBlackByTime     = 7
	GRLTWhiteByTime     = 8
)

Variables

This section is empty.

Functions

func Merge

func Merge(sgfs []string) string

func NewGameInfoParser

func NewGameInfoParser(text string) *gameInfoParser

Types

type BaseParser

type BaseParser struct {
	// contains filtered or unexported fields
}

type GIBParser

type GIBParser struct {
	*BaseParser
}

func NewGIBParser

func NewGIBParser(text string) *GIBParser

func (*GIBParser) Parse

func (p *GIBParser) Parse() (*GIBResult, error)

type GIBResult

type GIBResult struct {
	// contains filtered or unexported fields
}

func (*GIBResult) ToSGFNode

func (g *GIBResult) ToSGFNode() (*SGFNode, error)

type Parser

type Parser struct {
	*BaseParser
}

func New

func New(text string) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (*SGFNode, error)

type SGFNode

type SGFNode struct {
	fields.Fields
	// contains filtered or unexported fields
}

func (*SGFNode) GetChild

func (n *SGFNode) GetChild(i int) *SGFNode

func (*SGFNode) NumChildren

func (n *SGFNode) NumChildren() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL