swift-parsing
swift-parsing copied to clipboard
A library for turning nebulous data into well-structured data, with a focus on composition, performance, generality, and ergonomics.
Hi, This PR Fixes an issue when building for XCode 15.3 where the compiler is not able to provide a diagnostic. Type information has been explicitly provided to help the...
Accidentally noticed, that `Parsing -> ParserPrinters -> Newline.swift` file is empty 😳
The benchmark will not compile with Xcode 16, it fails in JSON.swift (latest on main): https://github.com/pointfreeco/swift-parsing/blob/82f10fc30e764f6ed680f9574ba0ac94743d8643/Sources/swift-parsing-benchmark/JSON.swift#L71 > Failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
Totally a possibility that I am missing something as I am a beginner Swift programmer, but the example on https://pointfreeco.github.io/swift-parsing/main/documentation/parsing/gettingstarted/ won't compile ``` let parser = Parse { Int.parser() ","...
I have a parser, now I'm wondering if I can generate EBNF from this parser. I realize that the generation will be imperfect because of possibly of custom code, but...
```swift let labelParser = Parse(input: Substring.self) { Prefix { $0 != "|" } } ``` ``` Let 'labelParser' is not concurrency-safe because non-'Sendable' type 'Parse' may have shared mutable state...
This is a breaking change, which means it should only be released in a 1.0 major update.
Based on [this discussion](https://github.com/pointfreeco/swift-parsing/discussions/69), I've sketched this parser. Didn't seem to make much sense to me as a printer, but happy to look at revising it. Let me know if...
I’ve been exploring the concept of Conversions recently and discovered they’re incredibly powerful. They seem to be a bit more broad than the `ParserPrinters` provided by swift-parsing. A `ParserPrinter` transforms...