Go to file
Yuji Ichikawa abb31adff0 bugfix: could not make public protocol conformance extension 2020-02-02 10:38:31 +09:00
Sources/SGF bugfix: could not make public protocol conformance extension 2020-02-02 10:38:31 +09:00
Tests added toSgf 2018-12-15 21:40:25 +09:00
.gitignore packaging by SwiftPM 2018-10-07 15:36:31 +09:00
Makefile bugfix: recognized upper-case characters in value as identifiers 2018-10-09 10:38:03 +09:00
Package.swift packaging by SwiftPM 2018-10-07 15:36:31 +09:00
README.md added shallowCopy 2020-02-02 09:51:04 +09:00
SGFParser.cy let CGFCValueType obsolete, value as string 2018-11-20 17:40:33 +09:00

README.md

SGF

Parser and utility functions for Smart Game Format in Swift

The parser is generated by Citron.

Usage

Add dependencies in Package.swift:

let package = Package(
    name: "your-project",
    dependencies: [
        ...
        .package(url: "https://github.com/y-ich/swift-SGF.git", .branch("master")),
    ],
    targets: [
        .target(
            name: "your-project",
            dependencies: [..., "SGF"]),
    ]
)

exmaples

See test code.

TODO

  • Charset(CA) support

License

MIT, except for CitronLexer.swift and CitronParser.swift. For CitronLexer.swift and CitronParser.swift, see file headers.