File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ PGNParser is designed to parse [Portable Game Notation](https://en.wikipedia.org
10
10
11
11
Currently, only the draughts game strings have been implemented. Pull requests are welcome for further features.
12
12
13
- Parsing can be enacted by simply making a single 'parse' call on the draughts move object .
13
+ Parsing can be enacted by simply making a single 'parse' call on the draughts move struct .
14
14
15
15
A result type will be returned which will contain the resulting move array or details of any failure.
16
16
17
17
A failure contains an enumeration describing the reason for the failure and usually the token which failed.
18
18
19
- The following will parse a PGN string to a DraughtsMove structure containing a black and a white move.
19
+ The following PGN string will parse to a DraughtsMove structure containing a black and a white move.
20
20
21
21
``` swift
22
22
let sinlgeMoveTwoPlayers = " 1. 9-14 23-18"
@@ -35,6 +35,7 @@ case .failure(let reason):
35
35
There are 2 external requirements for this project. Both by Tigerpixel, the same authors.
36
36
37
37
[ Currier] ( https://github.com/tigerpixel/Currier.git ) - A helper for currying functions and initializers which is used with the project.
38
+
38
39
[ ParserCombinator] ( https://github.com/tigerpixel/ParserCombinator.git ) - A General parser combinator which is extended to build PGNParser.
39
40
40
41
- iOS 8.0+ / macOS 10.9+ / tvOS 9.0+ / watchOS 2.0+
You can’t perform that action at this time.
0 commit comments