Parser and utility functions for Smart Game Format in Swift
The parser is generated by Citron.
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"]),
]
)
See test code.
- Charset(CA) support
MIT, except for CitronLexer.swift and CitronParser.swift. For CitronLexer.swift and CitronParser.swift, see file headers.