Releases: fcanas/FFCParserCombinator
Releases · fcanas/FFCParserCombinator
1.0.2
- Fixes a bug in the built in
Double
parser- Previously the fractional portion of floating point numbers was parsed
as aUInt
. Unfortunately that mean floating point numbers whose
fractional part had leading zeros were being incorrectly parsed. For
example,1.001
was incorrectly parsed as1.1
. This change switches
the parsing of the fractional part of a floating point number to be
intermediated by a string.
- Previously the fractional portion of floating point numbers was parsed
- Exposes backtracking
- This shouldn't be strictly necessary, but it may simplify some parsers a little.
1.0.1
- Expose interface for parsing
Substring
- This can be useful for combining Parsers with imperative Swift code rather than through this library's provided operators and functional approach. Remainders after a successful parse will often be a
Substring
. So if a Parser can accept aSubstring
, the result of one Parser can be more easily fed into another Parser. This behavior was already supported internally.
- This can be useful for combining Parsers with imperative Swift code rather than through this library's provided operators and functional approach. Remainders after a successful parse will often be a
- Expanded documentation
First stable release
Improve documentation and style * Remove redundant followed(by:) function * Improve documentation * Clean up style * Spaces after commas * Colon placement