Skip to content

0.3.0

Compare
Choose a tag to compare
@stephencelis stephencelis released this 27 Oct 17:38
· 174 commits to main since this release
0e4f1bf
  • Added: UUID.parser(), which incrementally parses a hexadecimal UUID from a substring or collection of bytes.

  • Added: Parser conformances for String, String.UnicodeScalarView, String.UTF8View, and [UInt8].

    These conformances can clean up a lot of StartsWith noise that can accumulate in string parsing. For example:

     let user = Int.parser()
    -  .skip(StartsWith(","))
    +  .skip(",")
       .take(Prefix { $0 != "," })
    -  .skip(StartsWith(","))
    +  .skip(",")
       .take(Bool.parser())