Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 674 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 674 Bytes

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-DDP.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.