package sgf

All checked builds pass
  1. Overview
  2. Docs
Parser and pretty printer for SGF files

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sgf-1.0.1.tbz
sha256=9ed1bed77725b6c7858d46ce0538fbdb97ff56cc71af6ae565e0635752acfee4
sha512=7c87f84482156ddb493e3d3ea0b38b8929fe5d7fb7b8bdadb78fb231dabdf8278b053538e062073c3db2df62befe1c62c699c4df3617f190f8660e80928ac8d5

Description

The Smart Game Format (SGF) is a computer file format used for storing records of board games. Go is the game that is most commonly represented in this format and is the default.

Added to opam-repository:

README

ocaml-sgf

This is a simple library for parsing the SGF FF[4] file format used to store game records of board games for two players, and especially the game of Go. It uses ulex and menhir to do the lexing and parsing. UTF-8 in SGF files is handled correctly, thanks to sedlex.

Dependencies

  • sedlex
  • menhir
  • rresult

You can install these dependencies with OPAM.

Building & installing

# make install

Building & installing in OPAM

# opam pin add .

Using and testing

The program sgftrip is a test program that parse and print an SGF file. It just takes an SGF file as an input, parse it, and print the result in the standard output. The result should be equivalent to the input, modulo line breaks / spaces.

The library Sgf contain functions to parse and pretty-print SGF files.

Dependencies (5)

  1. rresult
  2. menhir < "20211223"
  3. sedlex >= "2.0"
  4. dune >= "1.0"
  5. ocaml >= "4.02.0"

Dev Dependencies

None

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building sgf with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.0.1 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure