Release 4.0.0

Migrated source code to Swift 5.0

Release 3.0.3

Add missing 'products' entry in package description

Release 3.0.2

Update package description

Release 3.0.1

Fix compilation error for Swift 4.2

Release 3.0.0

Migrated source code to Swift 4.0

Release 2.1

Added support for linux.

Release 2.0.1

Moved operators implementation in Parsec extension

Release 2.0

General

Performance

A benchmark was added to test the performance of the library.

An internal design modification greatly improved the parsing speed and memory usage. Before the modification the benchmark measured 648.32s (≈10.8m) to execute the parsing of a huge JSON file. Now it only takes 6.7s, a bit more than 96 times faster!

API

let countLine = GenericParser<String, Int, Character>.endOfLine >>- { newLine in

    GenericParser<String, Int, Int>.userState >>- { userState in

        GenericParser(result: (newLine, userState + 1))

    }

}

Release 1.1