Releases: pointfreeco/swift-parsing
Releases · pointfreeco/swift-parsing
0.1.2
- Changed:
Double.parser()
has been rewritten to pass a parsed substring directly toDouble.init
rather thanstrtod_l
(whichDouble.init
uses under the hood). This avoids a crash in which an attempt to take the contiguous bytes of an unsafe buffer pointer on contiguous storage can fail. There is a slight performance cost (as seen in the benchmarks). We can probably recover this performance with a custom parser that does not simply wrapDouble.init
. - Bug fixed: all
Prefix
parser initializers correctly pass through theirpredicate
parameters. - Simplified
parse
helper on strings to contiguous storage (thanks @kaandedeoglu). - Improved documentation.
- Improved JSON example: it is not to-spec with properly escaped strings. Naive implementation still performs only about 2x slower than
JSONSerialization
.
0.1.1
0.1.0
Initial release!