David Dufresne
9f408d63f3
Rename some unit test classes
...
Rename some unit test classes according to their corresponding classes.
2017-02-04 08:46:31 -05:00
David Dufresne
8f32dae968
Move Linux test methods listing to class extensions
...
Instead of centralizing the listing of Linux test methods in
LinuxMain.swift put them in class extensions. It will be easier to
manage and make sure no method is forgotten.
2017-02-04 08:22:37 -05:00
David Dufresne
d78eb67342
Release 2.1
...
Add support for linux.
2.1
2.1.0
2017-01-21 15:39:42 -05:00
David Dufresne
ac724689a6
Cosmetic changes to comments
2017-01-21 15:28:23 -05:00
David Dufresne
045371e7b0
Merge branch 'hkgumbs-master'
...
Add linux support.
2017-01-21 15:13:23 -05:00
Kofi
70dca347b2
Merge pull request #1 from hkgumbs/pr-feedback
...
Feedback davedufresne/SwiftParsec#8
2017-01-21 12:42:10 -07:00
Kofi Gumbs
57c01df4a6
Feedback davedufresne/SwiftParsec#8
2017-01-21 12:33:03 -07:00
Kofi Gumbs
042a27b926
Conditionally compile around CVarArg
2017-01-20 10:05:14 -07:00
Kofi Gumbs
a218d1be0e
Conform to documentation comment conventions
2017-01-20 10:05:03 -07:00
Kofi Gumbs
65e9942fa8
Conditionally compile around Bundle.init(for:)
2017-01-20 10:03:48 -07:00
Mike Knepper
778d1b4461
Fix XCode file inclusion/exclusion
2017-01-20 10:02:40 -07:00
Kofi Gumbs
4c1f96e59e
Fix RVM issue affecting macOS builds
2017-01-20 10:02:40 -07:00
Kofi Gumbs
35baba9c2c
Update Travis config
2017-01-14 14:15:13 -07:00
Kofi Gumbs
c9384291ed
Fix silent CharacterSet compatibility bug
2017-01-14 15:44:57 -05:00
Kofi Gumbs
8254bf8a70
Get Tests to compile on Linux
2017-01-13 20:16:04 -05:00
Kofi Gumbs
b825dffcac
Build LinuxMain test file
2017-01-13 20:15:58 -05:00
Kofi Gumbs
c0a403d2f6
Make Foundation changes for Linux compilation
2017-01-10 11:43:33 -05:00
David Dufresne
1ac9404132
Update bundle version and podspec file
...
Update bundle version and podspec file to version 2.0.1
2.0.1
2016-10-09 14:13:07 -04:00
David Dufresne
2671d45ac8
Update change log for SwiftParsec 2.0.1
2016-10-09 14:11:17 -04:00
David Dufresne
5c37b78951
Move operators in Parsec protocol extension
2016-10-09 14:03:41 -04:00
David Dufresne
d0c118c053
Fix documentation on GenericParser class requirement
...
With the new design it's not the `StreamType` that is passed between the
parsers, but the iterator.
2016-10-09 09:09:09 -04:00
David Dufresne
78bd5327d9
Update change log for SwiftParsec 2.0
2.0
2016-10-09 08:42:07 -04:00
David Dufresne
1c6ce0995d
Update bundle version and podspec file
...
Update bundle version and podspec file to version 2.0.
2016-10-09 08:41:46 -04:00
David Dufresne
f2a8dd2cb1
Reduce the number of device used for testing
2016-10-08 19:24:18 -04:00
David Dufresne
2e75344c20
Add missing 's' in fail.
2016-10-08 19:24:18 -04:00
David Dufresne
649d976398
Check if the SampleJSON.json file exists
...
When using the package manager the SampleJSON.json file is not copied to
the bundle. So check if it exists before launching the benchmark.
2016-10-08 19:24:18 -04:00
David Dufresne
e998813c86
Put TokenParser extension in its own file
...
Improve file layout by putting the TokenParser extension in its own
file.
2016-10-08 19:24:17 -04:00
David Dufresne
7a20d1a888
Rename Language.swift to LanguageDefinition.swift
...
Give a more meaningful file name.
2016-10-08 19:08:32 -04:00
David Dufresne
cb4818646a
Rename Combinator.swift to CombinatorParsers.swift
...
Give a more meaningful file name and rename the corresponding test file.
2016-10-08 19:08:32 -04:00
David Dufresne
468dd4d712
Rename Character.swift to CharacterParsers.swift
...
Give a more meaningful file name and rename the corresponding test file.
2016-10-08 19:08:32 -04:00
David Dufresne
7385294ee1
Improve code comments
...
Batch improvements to code comments. Use separator to make it easier to
visually navigate files.
2016-10-08 19:08:30 -04:00
David Dufresne
267af1f5b9
Remove the 'Extension' suffix from files name
...
Remove the not so meaningful suffix from files name.
2016-10-08 19:06:36 -04:00
David Dufresne
75d3ab05ed
Rename SetExtension.swift to SetAggregation.swift
...
Rename the file to better reflect its content.
2016-10-08 19:06:36 -04:00
David Dufresne
cd610b0657
Split Sequence extension in two logical files
...
Move methods related to aggregation in their own file. And move the
method used to convert a sequence of `Int` into a `String` to another
file.
2016-10-08 19:06:36 -04:00
David Dufresne
6b865057c9
Make Int to Character mapping clearer
...
Use the `map()` method to make the code clearer and more terse.
2016-10-08 19:06:36 -04:00
David Dufresne
8dd6776015
Rename file containing RangeReplaceableCollection extension
...
Rename the file RangeReplaceableCollectionExtension.swift to
RangeReplaceableCollectionInsertion.swift to better reflect its content.
2016-10-08 19:06:36 -04:00
David Dufresne
ff48dda700
Remove unused popFirst() method
...
The method has been implemented in the standard library.
2016-10-08 19:06:36 -04:00
David Dufresne
1eaec786d2
Rename CollectionExtension.swift to CollectionAggregation.swift
...
Rename the file to better reflect its content.
2016-10-08 19:06:36 -04:00
David Dufresne
7aa22ca666
Split Character extension in two logical files
...
Move methods related to testing the membership of a character in their
own file. And move the methods related to converting a character in a
different format in another file.
2016-10-08 19:06:36 -04:00
David Dufresne
e0823ffb55
Remove popFirst() method from String extension
...
The `popFirst()` method is now implemented in the standard library.
2016-10-08 19:06:35 -04:00
David Dufresne
462993f1f8
Rename Expression.swift to ExpressionParser.swift
...
The new name better reflects the content of the file.
2016-10-08 19:06:35 -04:00
David Dufresne
d79fba7d25
Rename Token.swift to TokenParser.swift
...
The new name better reflects the content of the file.
2016-10-08 19:06:35 -04:00
David Dufresne
c9536297f9
Rename Error.swift to ParseError.swift
...
The new name better reflects the content of the file.
2016-10-08 19:06:35 -04:00
David Dufresne
c1c7832803
Add a runSafe method that doesn't throw an exception
...
Add a 'safe' method to run a parser without throwing an exception. It
uses the `Either` enumeration to return the result of the parsing. The
`run()` method is re-implemented in terms of the new `runSafe()` method
in a protocol extension.
2016-10-08 19:06:35 -04:00
David Dufresne
3d663b0616
Move Either enum in its own file
...
Since the `Either` enumeration is used by many other types it belongs in
its own file.
2016-10-08 19:06:35 -04:00
David Dufresne
f76feefb72
Fix package configuration for Swift 3
...
Make the package description valid by adding the 'targets' parameter.
Fix error 'the the name of a test module has no ‘Tests’ suffix' by
adding the required suffix.
2016-10-08 19:06:35 -04:00
David Dufresne
e03620c8ab
Follow case conventions
...
Acronyms and initialisms that commonly appear as all upper case in
American English should be uniformly up- or down-cased according to case
conventions.
2016-10-08 19:06:35 -04:00
David Dufresne
f8d143cbfa
Rename class to be more descriptive
...
Rename BenchmarkTest to JSONBenchmarkTests because the test is performed
using a JSON parser.
2016-10-08 19:06:35 -04:00
David Dufresne
e29a87c048
Unwrap UnicodeScalar failable initializer
...
Some UnicodeScalar initializers (ones that are non-failable) have been
changed from non-failable to failable. That is, in case a UnicodeScalar
can not be constructed, nil is returned.
2016-10-08 19:06:35 -04:00
David Dufresne
333b1a67b5
Replace dynamicType by function type(of:)
...
The dynamicType keyword has been removed from Swift. In its place, a new
primitive function type(of:) has been added to the language.
2016-10-08 19:06:35 -04:00