You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PGNParser.podspec
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
Pod::Spec.newdo |s|
8
8
s.name='PGNParser'
9
-
s.version='0.1.0'
9
+
s.version='0.2.0'
10
10
s.summary='A simple way to parse Portable Game Notation into Swift objects.'
11
11
s.description=<<-DESC
12
12
A simple way to parse Portable Game Notation into Swift objects. Easily parse game strings into Swift objects with just a single call. More work is required to fully suppourt the format. Pull requests for improvements are welcome.
PGNParser is designed to parse [Portable Game Notation](https://en.wikipedia.org/wiki/Portable_Game_Notation) files describing Chess and Draughts moves into simple Swift structures.
9
+
PGNParser is designed to parse [Portable Game Notation](https://en.wikipedia.org/wiki/Portable_Game_Notation) files describing Chess and Draughts moves into simple Swift structures.
10
10
11
-
Currently only the draughts game strings have been implemented. Pull request are welcome for further features.
11
+
Currently, only the draughts game strings have been implemented. Pull requests are welcome for further features.
12
12
13
13
Parsing can be enacted by simply making a single call on the draughts move objects.
14
14
15
-
A result type will be returned which will contain the resulting move array or details of any failure.
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 to on DraughtsMove structure containing a black and a white move.
19
+
The following will parse to on DraughtsMove structure containing a black and a white move.
20
20
21
21
```swift
22
22
let sinlgeMoveTwoPlayers ="1. 9-14 23-18"
@@ -34,13 +34,12 @@ case .failure(let reason):
34
34
35
35
There are 2 external requirements for this project. Both by Tigerpixel, the same authors.
36
36
37
-
38
-
[Currier](https://github.com/tigerpixel/Currier.git) - A helper for currying functions and initializers which is used with the project.
37
+
[Currier](https://github.com/tigerpixel/Currier.git) - A helper for currying functions and initializers which is used with the project.
39
38
[ParserCombinator](https://github.com/tigerpixel/ParserCombinator.git) - A General parser combinator which is extended to build PGNParser.
@@ -66,7 +65,7 @@ If you use Carthage to build your dependencies, make sure you have added `PGNPar
66
65
67
66
### Swift Package Manager
68
67
69
-
The [Swift Package Manager](https://swift.org/package-manager) is the official tool for managing the distribution of Swift code. It is currently available for macOS. It can also be used with Linux but this project does not fully support Linux at this point in time.
68
+
The [Swift Package Manager](https://swift.org/package-manager) is the official tool for managing the distribution of Swift code. It is currently available for macOS. It can also be used with Linux but this project does not fully support Linux at this point in time.
70
69
71
70
If you use it to manage your dependencies, simply add PGNParser to the dependencies value of your Package.swift file.
0 commit comments